Skip to content

Commit

Permalink
Update load_global_average_temperatures.py
Browse files Browse the repository at this point in the history
indents
  • Loading branch information
K-Ibadullaev authored Dec 11, 2024
1 parent a58046f commit 6b138d2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/py_ssa_lib/datasets/load_global_average_temperatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ def load_global_average_temperatures_df(rawDS=False):
return pd.read_csv(filepath_or_buffer=df_csv , sep=",")
else:
df_csv = os.path.join(dir_path,"GlobalLandTemperaturesByMajorCity.csv")
glob_temp_df = pd.read_csv(filepath_or_buffer=df_csv, sep=",")
glob_temp_df = glob_temp_df.dropna(axis=0)
glob_temp_df.dt = pd.to_datetime(glob_temp_df.dt)
cols_list = glob_temp_df["dt"]
glob_temp_df = glob_temp_df.drop(columns=["dt"]).T
glob_temp_df.columns = cols_list.values
glob_temp_df = pd.read_csv(filepath_or_buffer=df_csv, sep=",")
glob_temp_df = glob_temp_df.dropna(axis=0)
glob_temp_df.dt = pd.to_datetime(glob_temp_df.dt)
cols_list = glob_temp_df["dt"]
glob_temp_df = glob_temp_df.drop(columns=["dt"]).T
glob_temp_df.columns = cols_list.values

return glob_temp_df
return glob_temp_df

0 comments on commit 6b138d2

Please sign in to comment.