ruff: enable ICN and PD rules
This commit is contained in:
parent
c5df3ce128
commit
fc0e0be291
3 changed files with 7 additions and 3 deletions
|
@ -83,7 +83,7 @@ def make_dataframe(data: Iterator[Result]):
|
|||
}
|
||||
|
||||
df = pd.DataFrame(it())
|
||||
df.set_index('dt', inplace=True)
|
||||
df = df.set_index('dt')
|
||||
# TODO not sure about UTC??
|
||||
df.index = pd.to_datetime(df.index, utc=True)
|
||||
return df
|
||||
|
|
|
@ -155,9 +155,9 @@ def dataframe() -> DataFrameT:
|
|||
last = s # meh
|
||||
dicts.append(d)
|
||||
|
||||
import pandas
|
||||
import pandas as pd
|
||||
|
||||
return pandas.DataFrame(dicts)
|
||||
return pd.DataFrame(dicts)
|
||||
|
||||
|
||||
def stats() -> Stats:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue