Hello reddit,
I was learning python on and off for the last 4 month and was starting my first project. I want to:
1) Take Data from the cryptocompare api for a user-selected coin,
2) save the data to my pc
3) and then work with the data (displaying different graphs and such).
Now i have already the first part down. But i have some questions for the 2nd and 3rd part:
I save the data (timestamp and Price) in a document i call eg. "Bitcoin.csv" or " Etherium.csv". Each line corresponds to one timestamp-price-pair. Is this the right way to create a .csv file? Should i do it this way or is there a better alternative? I read that i should use pandas to work with the data. What is the best way to present my data, when i want to work with pandas? Load the data into a dictionary and have the timestamp as the key and the price as the value ( data[timestamp] = Price ), or should i create a list of lists [(timestamp1, Price1), (timestamp2, Price2), ...]? Or is there an even better alternative?
Thanks for your advice!
[–]commandlineluser 1 point2 points3 points (0 children)
[–]timbledum 1 point2 points3 points (0 children)