We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8282ee2 commit 8f47559Copy full SHA for 8f47559
pandas/core/frame.py
@@ -2215,6 +2215,15 @@ def to_parquet(
2215
col1 col2
2216
0 1 3
2217
1 2 4
2218
+
2219
+ If you want get a buffer to the parquet content you can use a io.BytesIO object,
2220
+ as long as you don't use partition_cols, which creates multiple files.
2221
2222
+ >>> import io
2223
+ >>> f = io.BytesIO()
2224
+ >>> df.to_parquet(f)
2225
+ >>> f.seek(0)
2226
+ >>> content=f.read()
2227
"""
2228
from pandas.io.parquet import to_parquet
2229
0 commit comments