mirror of
https://gitlab.com/simple-stock-bots/simple-stock-bot.git
synced 2025-06-16 15:17:28 +00:00
/intra was dropping missing data from unnecessary columns
This commit is contained in:
parent
85d5cc9a30
commit
0f20486fae
@ -224,7 +224,7 @@ Market data is provided by [IEX Cloud](https://iexcloud.io)
|
||||
response = r.get(IEXurl)
|
||||
if response.status_code == 200:
|
||||
df = pd.DataFrame(response.json())
|
||||
df.dropna(inplace=True)
|
||||
df.dropna(inplace=True, subset=["date", "minute", "high", "low", "volume"])
|
||||
df["DT"] = pd.to_datetime(df["date"] + "T" + df["minute"])
|
||||
df = df.set_index("DT")
|
||||
return df
|
||||
|
Loading…
x
Reference in New Issue
Block a user