mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
fix display_floor_price
This commit is contained in:
committed by
Igor Radovanovic
parent
6367369b39
commit
fedbbdb869
@@ -65,5 +65,7 @@ def get_floor_price(slug: str) -> pd.DataFrame:
|
||||
)
|
||||
df = df.set_index("timestamps")
|
||||
df.index = pd.to_datetime(df.index * 1_000_000)
|
||||
return df
|
||||
df.index = pd.DatetimeIndex(df.index.rename("date").strftime("%Y-%m-%d"))
|
||||
df = df.reset_index().drop_duplicates(subset=["date"])
|
||||
return df.set_index("date")
|
||||
return pd.DataFrame()
|
||||
|
||||
Reference in New Issue
Block a user