Zack commited on
Commit
85e7307
·
1 Parent(s): 5583051

chore: Add missing return statement

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -83,6 +83,8 @@ def clean_data(df):
83
  # Rename column
84
  df.rename(columns={"Hourly_Labor_Hours_Total": "value"}, inplace=True)
85
 
 
 
86
  elif "Date_CY" in df.columns and "Hour" in df.columns and "Net_Sales_CY" in df.columns:
87
  # Convert "Date_CY" and "Hour" columns into datetime format
88
  df["timestamp"] = pd.to_datetime(df["Date_CY"]) + pd.to_timedelta(df["Hour"].astype(int), unit='h')
 
83
  # Rename column
84
  df.rename(columns={"Hourly_Labor_Hours_Total": "value"}, inplace=True)
85
 
86
+ return df
87
+
88
  elif "Date_CY" in df.columns and "Hour" in df.columns and "Net_Sales_CY" in df.columns:
89
  # Convert "Date_CY" and "Hour" columns into datetime format
90
  df["timestamp"] = pd.to_datetime(df["Date_CY"]) + pd.to_timedelta(df["Hour"].astype(int), unit='h')