prepared for pythonmembers.club

removing last columns of excel dataframe using pandas by index

#removing-last-columns-of-excel-dataframe-using-pandas-by-index

here is our last code

Loading output library...

though we did it in our last tutorial, just one step to understand how to remove by index

to get all columns we do

Loading output library...

we can see clearly that our 4 last columns are unneeded

Loading output library...
Loading output library...

now delete

Loading output library...