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 8282ee2 commit ccc9aabCopy full SHA for ccc9aab
pandas/core/frame.py
@@ -2215,6 +2215,14 @@ 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
+ >>> f = io.BytesIO()
2223
+ >>> df.to_parquet(f)
2224
+ >>> f.seek(0)
2225
+ >>> content=f.read()
2226
"""
2227
from pandas.io.parquet import to_parquet
2228
0 commit comments