Skip to content

BUG: Parquet does not support saving fp16 GH#44846 #44847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
4 changes: 4 additions & 0 deletions pandas/io/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def validate_dataframe(df: DataFrame):
if not valid_names:
raise ValueError("Index level names must be strings")

# Paquet format does not support saving float16
if df.select_dtypes(include='float16').columns.size > 0:
raise ValueError("Parquet format does not support saving float16")

def write(self, df: DataFrame, path, compression, **kwargs):
raise AbstractMethodError(self)

Expand Down