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.
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)
~\AppData\Local\Temp/ipykernel_11560/1465043235.py in <module>
----> 1 df = df.iloc[: , 1:]
AttributeError: 'list' object has no attribute 'iloc'