need to find CLI for generating summary tables
This commit is contained in:
parent
4ed9804405
commit
ef011cda55
1 changed files with 6 additions and 10 deletions
|
@ -117,24 +117,20 @@ class CourseBuilder:
|
||||||
# mm = Template("{'written':'S','oral':'mündlich'}[${v}]")?
|
# mm = Template("{'written':'S','oral':'mündlich'}[${v}]")?
|
||||||
# print(mm.format(v=mm))
|
# print(mm.format(v=mm))
|
||||||
|
|
||||||
|
# lets get crazy to create a summary table!
|
||||||
|
df_summary = pd.DataFrame([{
|
||||||
|
'sum.credits': df_q['credits'].sum()
|
||||||
|
}])
|
||||||
|
|
||||||
# set labels
|
# set labels
|
||||||
if args.query_labels:
|
if args.query_labels:
|
||||||
df_q.columns = args.query_labels
|
df_q.columns = args.query_labels
|
||||||
|
|
||||||
q_as_md = df_q.to_markdown(tablefmt='grid',index=False)
|
q_as_md = df_q.to_markdown(tablefmt='grid',index=False)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
print(q_as_md)
|
print(q_as_md)
|
||||||
|
|
||||||
# # lets get crazy to create a summary table!
|
print(df_summary.to_markdown(tablefmt='grid',index=False))
|
||||||
# df_summary = pd.DataFrame([{
|
|
||||||
# 'sum.credits': df_q['credits'].sum()
|
|
||||||
# }])
|
|
||||||
|
|
||||||
# print(df_summary.to_markdown(tablefmt='grid',index=False))
|
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue