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 f55ce5fCopy full SHA for f55ce5f
pandas/io/parquet.py
@@ -245,6 +245,17 @@ def to_parquet(
245
246
kwargs
247
Additional keyword arguments passed to the engine
248
+
249
+ Examples
250
+ --------
251
+ If you want get a buffer to the parquet content you can use a io.BytesIO object
252
+ >>> f = io.BytesIO()
253
+ >>> df.to_parquet(f)
254
+ >>> f.seek(0)
255
+ >>> len(f.read())
256
257
+ Or simply a path:
258
+ >>> df.to_parquet('df.parquet')
259
"""
260
if isinstance(partition_cols, str):
261
partition_cols = [partition_cols]
0 commit comments