We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cad9e5 commit d5e8edcCopy full SHA for d5e8edc
pandas/core/frame.py
@@ -2292,6 +2292,16 @@ def to_parquet(
2292
col1 col2
2293
0 1 3
2294
1 2 4
2295
+
2296
+ If you want to get a buffer to the parquet content you can use a io.BytesIO
2297
+ object, as long as you don't use partition_cols, which creates multiple files.
2298
2299
+ >>> import io
2300
+ >>> f = io.BytesIO()
2301
+ >>> df.to_parquet(f)
2302
+ >>> f.seek(0)
2303
+ 0
2304
+ >>> content = f.read()
2305
"""
2306
from pandas.io.parquet import to_parquet
2307
0 commit comments