File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -2183,8 +2183,12 @@ def to_parquet(
2183
2183
Name of the compression to use. Use ``None`` for no compression.
2184
2184
index : bool, default None
2185
2185
If ``True``, include the dataframe's index(es) in the file output.
2186
- If ``False``, they will not be written to the file. If ``None``,
2187
- the behavior depends on the chosen engine.
2186
+ If ``False``, they will not be written to the file.
2187
+ If ``None``, similar to ``True`` the dataframe's index(es)
2188
+ will be saved. However, instead of being saved as values,
2189
+ the RangeIndex will be stored as a range in the metadata so it
2190
+ doesn't require much space and is faster. Other indexes will
2191
+ be included as columns in the file output.
2188
2192
2189
2193
.. versionadded:: 0.24.0
2190
2194
Original file line number Diff line number Diff line change @@ -227,8 +227,12 @@ def to_parquet(
227
227
Name of the compression to use. Use ``None`` for no compression.
228
228
index : bool, default None
229
229
If ``True``, include the dataframe's index(es) in the file output. If
230
- ``False``, they will not be written to the file. If ``None``, the
231
- engine's default behavior will be used.
230
+ ``False``, they will not be written to the file.
231
+ If ``None``, similar to ``True`` the dataframe's index(es)
232
+ will be saved. However, instead of being saved as values,
233
+ the RangeIndex will be stored as a range in the metadata so it
234
+ doesn't require much space and is faster. Other indexes will
235
+ be included as columns in the file output.
232
236
233
237
.. versionadded:: 0.24.0
234
238
You can’t perform that action at this time.
0 commit comments