minor fix: Object of type int64 is not JSON serializable (#23109)
This commit is contained in:
@@ -280,7 +280,7 @@ class AppAnnotationService:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Skip the first row
|
# Skip the first row
|
||||||
df = pd.read_csv(file)
|
df = pd.read_csv(file, dtype=str)
|
||||||
result = []
|
result = []
|
||||||
for index, row in df.iterrows():
|
for index, row in df.iterrows():
|
||||||
content = {"question": row.iloc[0], "answer": row.iloc[1]}
|
content = {"question": row.iloc[0], "answer": row.iloc[1]}
|
||||||
|
Reference in New Issue
Block a user