How to remove/delete first row/column from Data Frame using python?

I’m using selenium to scrape dynamic data from a trading website. I’ve scraped the whole table and add it to a data frame. Now, I want to delete the first row/column from my data frame and insert it into MySQL. But, I’m unable to delete that row/column.

enter image description here

Please help me to delete either the first row or column. I’ve tried but I can’t able to do this :

df = df.iloc[: , 1:]

AttributeError                            Traceback (most recent call last)
~AppDataLocalTemp/ipykernel_11560/ in <module>
----> 1 df = df.iloc[: , 1:]

AttributeError: 'list' object has no attribute 'iloc'


.read_html() returns a list of dataframes. You call the specific dataframes by the index position (Ie: like you did with df[1]. So you need to use .iloc on the dataframe in your list of dataframes, on index position 1.

df = df[1].iloc[: , 1:]