mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-08-16 13:09:53 +02:00
✨ page_info: Use boolean for indicator variable, str for hrefs
This commit is contained in:
parent
64ed7298da
commit
d685454c52
3 changed files with 15 additions and 3 deletions
|
@ -378,10 +378,12 @@ def convert_db_to_parquet(con, table, index_col, output_file):
|
|||
df[c] = df[c].astype("Int64")
|
||||
elif column_type == "float64":
|
||||
df[c] = df[c].astype("Float64")
|
||||
elif column_type == "bool":
|
||||
df[c] = df[c].map({"True": True, "False": False}).astype("boolean")
|
||||
elif column_type == "set":
|
||||
# TODO WIP
|
||||
continue
|
||||
else:
|
||||
raise NotImplementedError(f"Column type {column_type} not implemented yet.")
|
||||
raise NotImplementedError(f"Column {c}: type {column_type} not implemented yet.")
|
||||
|
||||
df.to_parquet(output_file)
|
Loading…
Add table
Add a link
Reference in a new issue