Output the number of respondents.
This commit is contained in:
@@ -175,7 +175,6 @@ df__["値"].std()
|
|||||||
.
|
.
|
||||||
├── README.org
|
├── README.org
|
||||||
├── analyze_lab_assignment_survey.py
|
├── analyze_lab_assignment_survey.py
|
||||||
├── analyze_lab_assignment_survey.xlsx
|
|
||||||
└── googleform.txt
|
└── googleform.txt
|
||||||
#+end_example
|
#+end_example
|
||||||
|
|
||||||
|
|||||||
@@ -156,12 +156,14 @@ if __name__ == "__main__":
|
|||||||
df_r.loc[n, "GPA std"] = df__["値"].std()
|
df_r.loc[n, "GPA std"] = df__["値"].std()
|
||||||
df_r[["在校生", "編入生"]] = df_r[["在校生", "編入生"]].astype(int)
|
df_r[["在校生", "編入生"]] = df_r[["在校生", "編入生"]].astype(int)
|
||||||
# 表示用
|
# 表示用
|
||||||
|
|
||||||
df_show = df_r.copy()
|
df_show = df_r.copy()
|
||||||
df_show.index.name = "研究室"
|
df_show.index.name = "研究室"
|
||||||
df_show["GPA mean"] = df_show["GPA mean"].round(1)
|
df_show["GPA mean"] = df_show["GPA mean"].round(1)
|
||||||
df_show["GPA std"] = df_show["GPA std"].round(1)
|
df_show["GPA std"] = df_show["GPA std"].round(1)
|
||||||
print(
|
print("-" * 52)
|
||||||
f"{'研究室':>6} "
|
print("回答者数:", df.shape[0])
|
||||||
|
print(f"{'研究室':>6} "
|
||||||
f"{'在校生':>6} "
|
f"{'在校生':>6} "
|
||||||
f"{'編入生':>6} "
|
f"{'編入生':>6} "
|
||||||
f"{'GPA mean':>10} "
|
f"{'GPA mean':>10} "
|
||||||
|
|||||||
Reference in New Issue
Block a user