Skip to content

Commit a4665da

Browse files
authored
Update UtilitiesClient.py
Removing typo from df_up slice causing df_create and df_update to break.
1 parent 909dc8f commit a4665da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydomo/utilities/UtilitiesClient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def stream_upload(self, ds_id, df_up, warn_schema_change=True):
8080
end = chunksz
8181

8282
for i in range(math.ceil(df_rows/chunksz)):
83-
df_sub = df_up.iloc[start:end, ]
83+
df_sub = df_up.iloc[start:end]
8484
csv = df_sub.to_csv(header=False,index=False)
8585
self.stream.upload_part(stream_id, exec_id, start, csv)
8686
start = end
@@ -99,4 +99,4 @@ def stream_create(self, up_ds, name, description, updateMethod='REPLACE', keyCol
9999
req_body['keyColumnNames'] = keyColumnNames
100100
# return req_body
101101
st_created = self.transport.post('/v1/streams/', req_body, {})
102-
return json.loads(st_created.content.decode('utf-8'))
102+
return json.loads(st_created.content.decode('utf-8'))

0 commit comments

Comments
 (0)