Skip to content

Commit

Permalink
Remove unnamed column from result
Browse files Browse the repository at this point in the history
  • Loading branch information
luabida committed Dec 18, 2023
1 parent b6bb180 commit ff06c05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scanner/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _get_alerta_table(self) -> pd.DataFrame:
df = pd.read_sql_query(query, conn, index_col="id")

df.data_iniSE = pd.to_datetime(df.data_iniSE)
df.set_index("data_iniSE", inplace=True)
df.set_index("data_iniSE", inplace=True, drop=True)
return df

def _filter_city(self, geocode):
Expand Down Expand Up @@ -273,7 +273,7 @@ async def scan_year(y):
return

out, curve = otim(
dfy[["casos", "casos_cum"]].iloc[0 : self.window], # NOQA E203
dfy[["casos", "casos_cum"]].iloc[0: self.window], # NOQA E203
0,
self.window,
)
Expand Down

0 comments on commit ff06c05

Please sign in to comment.