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.
pyarrow
1 parent ef97dd4 commit 3ee2f11Copy full SHA for 3ee2f11
pandas/io/parquet.py
@@ -13,6 +13,7 @@
13
FilePathOrBuffer,
14
StorageOptions,
15
)
16
+from pandas.compat import pa_version_under4p0
17
from pandas.compat._optional import import_optional_dependency
18
from pandas.errors import AbstractMethodError
19
from pandas.util._decorators import doc
@@ -179,6 +180,11 @@ def write(
179
180
mode="wb",
181
is_dir=partition_cols is not None,
182
183
+
184
+ # Output compliant Parquet if PyArrow supports it
185
+ if not pa_version_under4p0:
186
+ kwargs["use_compliant_nested_type"] = True
187
188
try:
189
if partition_cols is not None:
190
# writes to multiple files under the given path
0 commit comments