Convert data from object to int

Hi everyone,



I'm trying to finish this Section Quantra by QuantInsti | Courses on Algorithmic and Quantitative Trading (Pandas - Descriptive Statistical Function, Section 8, Unit 12)



I have downloaded historical data and saved it as CSV file, so far I've been able to do most of the tasks. However, when I wanted to do descriptive stats I get an error that the Price column is an object data type.



I've tried to convert it to int but I get an error, even after tring to convert it to str the data is still an object when I check its datatype.



How can I download historical data and save it as an int instead of an object?



Kind regards

Wonder

Hi Wonder,



Thanks for raising your query on the community. 



Could you share the complete code and CSV file in which you are getting the error on quantra@quantinsti.com.



Thanks!