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 29c820f commit e975e4fCopy full SHA for e975e4f
pandas/core/frame.py
@@ -2225,6 +2225,16 @@ def to_parquet(
2225
col1 col2
2226
0 1 3
2227
1 2 4
2228
+
2229
+ If you want get a buffer to the parquet content you can use a io.BytesIO object,
2230
+ as long as you don't use partition_cols, which creates multiple files.
2231
2232
+ >>> import io
2233
+ >>> f = io.BytesIO()
2234
+ >>> df.to_parquet(f)
2235
+ >>> f.seek(0)
2236
+ 0
2237
+ >>> content = f.read()
2238
"""
2239
from pandas.io.parquet import to_parquet
2240
0 commit comments