Skip to content

Commit

Permalink
pandas-dev#44914 Changes WriteBuffer class to io.BufferedWriter class…
Browse files Browse the repository at this point in the history
… for typecasting to string in path object for to_parquet
  • Loading branch information
Anirudhsekar96 committed Jan 20, 2022
1 parent 0bde11e commit ee8cd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/io/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def write(
mode="wb",
is_dir=partition_cols is not None,
)
if isinstance(path_or_handle, WriteBuffer):
if isinstance(path_or_handle, io.BufferedWriter):
path_or_handle = path_or_handle.raw.name

try:
Expand Down

0 comments on commit ee8cd90

Please sign in to comment.