Skip to content

Commit bb93b4a

Browse files
Merge pull request #94 from jboliv01/fix-slicing-bug
Fix row slicing issue in UtilitiesClient
2 parents 909dc8f + d7f5c07 commit bb93b4a

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)