Skip to content

Commit

Permalink
Work around Pandas issue
Browse files Browse the repository at this point in the history
Set chunksize to work around pandas-dev/pandas#37280.
  • Loading branch information
remram44 committed Oct 20, 2020
1 parent bc73273 commit 3a734fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib_materialize/datamart_materialize/stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def stata_to_csv(source_filename, dest_fileobj):
for i, chunk in enumerate(
pandas.read_stata(source_filename, iterator=True)
pandas.read_stata(source_filename, iterator=True, chunksize=1)
):
chunk.to_csv(
dest_fileobj,
Expand Down

0 comments on commit 3a734fb

Please sign in to comment.