Skip to content

Commit

Permalink
feat: remove empty rows;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed May 25, 2024
1 parent 83a9aa5 commit 3d939d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tsdb/loading_funcs/italy_air_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def load_italy_air_quality(local_path):
df = pd.read_csv(file_path, sep=";", decimal=",")
# remove empty columns
df.drop(columns=["Unnamed: 15", "Unnamed: 16"], inplace=True)
# remove rows with all NaN, i.e. Date is NaN
df = df[~df["Date"].isna()]

data = {
"X": df,
Expand Down

0 comments on commit 3d939d1

Please sign in to comment.