Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

drop column from dataframe

var = dataframe.drop(['col', 'col'], axis=1)
var.sum()
Comment

drop column of datfame

df.drop(['B', 'C'], axis=1)
Comment

PREVIOUS NEXT
Code Example
Python :: python write into file at position 
Python :: python list input print 
Python :: inverse mask python 
Python :: python call function x number of times 
Python :: odoo scaffold command 
Python :: how to change values in dataframe python 
Python :: how ro have a incresing variable in python 
Python :: django url with string parameter 
Python :: pandas df exact equals 
Python :: load png to python 
Python :: python check equality of floats 
Python :: beautifulsoup getting data from a website 
Python :: python . 
Python :: how to read .xlsx file in python 
Python :: Python create a new png file 
Python :: Delete file in python Using the shutil module 
Python :: how to find uncommon records of two dataframes 
Python :: dictionary in python 
Python :: permission denied when converting dataframe to csv 
Python :: hide tkinter window 
Python :: python list all columns in dataframe 
Python :: discord.py get user id 
Python :: pandas transform 
Python :: list of dict to dict python 
Python :: pandas knn imputer 
Python :: how to make a timer using python 
Python :: python combinations 
Python :: create python package 
Python :: python remove dtype from array 
Python :: python jinja2 from string 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =