Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion open_mastr/xml_download/utils_cleansing_bulk.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def replace_mastr_katalogeintraege(
katalogwerte = create_katalogwerte_from_bulk_download(zipped_xml_file_path)
for column_name in df.columns:
if column_name in catalog_columns:
if df[column_name].dtype == "O":
if pd.api.types.is_string_dtype(df[column_name]):
# Handle comma-separated strings from catalog values
df[column_name] = (
df[column_name]
Expand Down