We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83c52f1 commit 52d216eCopy full SHA for 52d216e
common_grade_export/src/utils/gspread.py
@@ -1,5 +1,6 @@
1
import csv
2
import os
3
+from io import StringIO
4
5
import pandas as pd
6
import pygsheets
@@ -43,7 +44,13 @@ def write_data_to_table(
43
44
45
wk_content = sh.worksheet_by_title(sheet_name)
46
- wk_content.set_dataframe(df_data, "A1", copy_head=True)
47
+ # wk_content.set_dataframe(df_data, "A1", copy_head=True) # problem w/float dot
48
+ stream = StringIO()
49
+ df_data.to_csv(stream, sep=CSV_DELIMITER)
50
+ reader = csv.reader(stream, delimiter=CSV_DELIMITER)
51
+ for row in reader:
52
+ print(row)
53
+ wk_content.append(row)
54
55
56
def add_csv_to_table_dis(
0 commit comments