PYTHON - df conversion with quote #1020
reitua7
started this conversation in
Help and support
Replies: 2 comments 6 replies
-
|
Try |
Beta Was this translation helpful? Give feedback.
6 replies
-
|
Tip For a working example using price quotes from a pandas.DataFrame, see our Replit of the Williams Fractal indicator. If you're having general trouble getting setup, see our QuickStart guide. See also: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
I can't convert my dataframe using Quote class:
data= yf.download(XXXX, period="max", start="2010-01-01", end=date.today(), show_errors=False, progress=False)
data["Date"]=data.index
data = data[["Date", "Open", "High", "Low", "Close", "Adj Close", "Volume"]]
data.reset_index(drop=True, inplace=True)
quotes_list = [Quote(d, o, h, l, c, v) for d in zip(data["Date"], data["Open"], data["High"], data["Low"], date["Close"], data["Volume"] )]
i got a " 'NoneType' value cannot be converted", but my dataframe is:
Date datetime64[ns]
Open float64
High float64
Low float64
Close float64
Adj Close float64
Volume int64
Do you see my mistake ?
Beta Was this translation helpful? Give feedback.
All reactions