How do I remove the first column?

How do I remove the first column?
Answer
Pandas: Delete first column of dataframe in Python
  1. Use iloc to drop first column of pandas dataframe.
  2. Use drop() to remove first column of pandas dataframe.
  3. Use del keyword to remove first column of pandas dataframe.
  4. Use pop() to remove first column of pandas dataframe.
 

Tìm kiếm

Back
Top