df = covidin.groupby(\'date\')[\'total_cases\'].sum().reset_index() df.columns = [\'ds\',\'y\'] df[\'ds\'] = pd.to_datetime(df[\'ds\']) m = Prophet() m.fit(df)