Would it be worth making this method accept both filepath and BytesIO/StringIO object?
See original GitHub issueWhen calling the to_parquet
method in pandas, the api is not consistent when using fastparquet engine. For example, to_csv
accepts either a filepath or a buffer. So does to_parquet
when using the pyarrow engine. However, calling to_parquet
when using the fastparquet engine will error when passed a buffer rather than filepath.
I think it would be good to adhere to the polymorphic api exposed by the other to_<format>
methods and allow both filepath and buffer to be passed to to_parquet
.
I am happy to submit a PR for this unless anyone has an objection?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Using StringIO and BytesIO for managing data as file object
In python, while processing the I/O operation of various types( like the text I/O, binary I/O and raw I/O.)
Read more >convert io.StringIO to io.BytesIO - python - Stack Overflow
In which case, it is a common question and the solution is codecs module. The two usual cases of using it are the...
Read more >Python StringIO and BytesIO Compared With Open() - Medium
Yes we can use readinto() method of file a object. · The readinto() method of files can be used to fill any preallocated...
Read more >Python io - BytesIO, StringIO - DigitalOcean
Python io module allows us to manage the file-related input and output operations. The advantage of using the IO module is that the...
Read more >IO tools (text, CSV, HDF5, …) — pandas 0.25.1 documentation
Path , or py._path.local.LocalPath ), URL (including http, ftp, and S3 locations), or any object with a read() method (such as an open...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You should not need
--doctest-cython
, but install the source as you normally would do, e.g.,(run from the source directory).
@martindurant Let me check, i have a clue to what maybe wrong, though I’ll learn conda and try to install it fresh through that, but if that still dosent works I’ll raise an issue.