Python|Excluding columns|Jupyter Notebook
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 2 )
import numpy as np
import pandas as pd
import matplot.lib as pyplot
import seaborn as sns
then import csv file in jupyter notebook
df = pd.read_csv(‘C:\Users\Ibrahim\Downloads\train_u6lujuX_CVtuZ9i.csv’) ….(for example)
tdf = df.drop([‘xxx’, ‘yyy’, ‘zzzz’], axis=1)
tdf.head()
note:xxx,yyy,zzz=column name
import pandas as pd
df = pd.read_csv(“nr_bankloans.csv”)
df.drop([“ed”], axis=1, inplace=True)