News importing data

Course Name: Getting Market Data: Stocks, Crypto, News & Fundamental, Section No: 9, Unit No: 1, Unit type: Notebook

 

 

'DataFrame' object has no attribute 'append'

Hey Diego,

The version of pandas you are using must not be the one in quantra_py environment which is recommended for running code from the course. Append method has been removed from pandas 2.0.
You can install the recommended environment named quantra_py in your system as instructed in section 12 of the course "Run Codes Locally on Your Machine".
Or you can use the following code to install a version of pandas compatible with the code:

!pip install pandas==1.5.3

Also, I will not be able to access the code file link you have attached as exists in your local system. Please upoad it on google drive, then you can grant access and share the link.



Hope this helps!