Output the number of respondents.

This commit is contained in:
2026-07-09 07:27:34 +09:00
parent 5af8e4e08a
commit 0f0969bbb0
2 changed files with 4 additions and 3 deletions
-1
View File
@@ -175,7 +175,6 @@ df__["値"].std()
.
├── README.org
├── analyze_lab_assignment_survey.py
├── analyze_lab_assignment_survey.xlsx
└── googleform.txt
#+end_example
+4 -2
View File
@@ -156,12 +156,14 @@ if __name__ == "__main__":
df_r.loc[n, "GPA std"] = df__[""].std()
df_r[["在校生", "編入生"]] = df_r[["在校生", "編入生"]].astype(int)
# 表示用
df_show = df_r.copy()
df_show.index.name = "研究室"
df_show["GPA mean"] = df_show["GPA mean"].round(1)
df_show["GPA std"] = df_show["GPA std"].round(1)
print(
f"{'研究室':>6} "
print("-" * 52)
print("回答者数:", df.shape[0])
print(f"{'研究室':>6} "
f"{'在校生':>6} "
f"{'編入生':>6} "
f"{'GPA mean':>10} "