LastAncientOne/Deep_Learning_Machine_Learning_Stock

Need correction in cell 16 from '001_Pandas.ipynb'

janetcheung-byte opened this issue · 1 comments

Below original first line of code doesn't work ⬇️ :

# Move column example
# Move Date in the first column

cols = list(new_df)
cols.insert(0, cols.pop(cols.index('Date')))
cols

Please correct this code to ⬇️ :

# Move column example
# Move Date in the first column
cols = new_df.columns.to_list()
cols.insert(0, cols.pop(cols.index('Date')))
cols

Hi. I will fix it and update. Thank you.