Issues downloading options data. I am having problems obtaining and storing the Options Data in Sect

Course Name: Machine Learning for Options Trading, Section No: 7, Unit No: 7, Unit type: Notebook

I am having problems obtaining and storing the Options Data in Section 7 Unit 7. Firstly, the .append() was depreciated, but I was able, with the help of ChatGPT, to find a workaround. However, I am unable to decipher, from the code provided, how to get the subset of columns (column headers) from the totality of columns that the extracted .txt file contains. Help!

Hi Garth,

You can use “df.columns.tolist()” to get the list of all the columns in the dataframe. From the columns list you can identify and filter the relevant columns.

Please let us know if you still face any issues.