Python Plotly | Data is visualized wrong

Viewed 37

When I try to visualize a dataset with plotly, it isn't one fluent line but the datapoints are everywhere and it is not visualized correctly!

Dataset looks like this

Date     | Price (Open) | Zscore
7-9-2022 |1558,804746   | 1,95E     
6-9-2022 |1617,890692   | 1,41E       
5-9-2022 |1579,110999   | 1,20E

This is how it looks in Python Plotly!

This is how it SHOULD look

I tried to adjust the datatypes.

MVRVRatio['Date'] = pd.to_datetime(MVRVRatio['Date'], errors='coerce')
MVRVRatio['Zscore'] = pd.to_numeric(MVRVRatio['Zscore'], errors='coerce')
MVRVRatio['Price (Open)'] = pd.to_numeric(MVRVRatio['Price (Open)'], errors='coerce')

But this doesn't work at all

0 Answers
Related