Skip to content

Commit af9916d

Browse files
authored
Merge pull request #86 from mindsdb/fix/no_index_df_csv
[fix] index is not included when storing a pandas DF
2 parents 950ea04 + ca02194 commit af9916d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mindsdb_sdk/connectors/rest_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def upload_file(self, name: str, df: pd.DataFrame):
124124

125125
# convert to file
126126
fd = io.BytesIO()
127-
df.to_csv(fd)
127+
df.to_csv(fd, index=False)
128128
fd.seek(0)
129129

130130
url = self.url + f'/api/files/{name}'

0 commit comments

Comments
 (0)