Skip to content

Commit

Permalink
black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lpicci96 committed Jun 6, 2024
1 parent e92896a commit a4d6da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imf_reader/weo/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def clean_numeric_columns(df: pd.DataFrame) -> pd.DataFrame:
"""

for column, dtype in SDMX_NUMERIC_COLUMNS.items():
df[column] = df[column].replace(["n/a", "--", "NULL", ''], pd.NA)
df[column] = df[column].replace(["n/a", "--", "NULL", ""], pd.NA)
df[column] = df[column].str.replace(",", "") # Remove commas
df[column] = df[column].astype(dtype)

Expand Down

0 comments on commit a4d6da8

Please sign in to comment.