Select all rows and 2nd column
Selecting all the rows and only the second columns from the Dataframe.
Python3
# selecting all rows and # 3rd column df.iloc[ : , 2 ] |
Output:
Select a row of series or dataframe by given integer index
The Dataframe.iloc[] is used to select a row of Series/Dataframe by a given integer index in Python.