If no dataframe was yet created for the current day remove the entry for plotting purposes
This commit is contained in:
@@ -83,6 +83,9 @@ def plot(
|
|||||||
sum_val = current_df[["Digitale Befragung"]].sum().iloc[0]
|
sum_val = current_df[["Digitale Befragung"]].sum().iloc[0]
|
||||||
df.loc[curr_datetime] = sum_val
|
df.loc[curr_datetime] = sum_val
|
||||||
|
|
||||||
|
if pd.isna(df.loc[df.index.max()][0]):
|
||||||
|
df = df.drop([df.index.max()])
|
||||||
|
|
||||||
fig = plt.figure(dpi=300)
|
fig = plt.figure(dpi=300)
|
||||||
|
|
||||||
# fill weekends
|
# fill weekends
|
||||||
|
|||||||
Reference in New Issue
Block a user