I'm learning python for Data science on my own. I've done some research and I can't seem to figure out whats going on with my Code to cause this. Here's my code:
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sb
from pylab import rcParams
%matplotlib inline
rcParams['figure.figsize'] = 5,4
sb.set_style('whitegrid')
df = pd.read_csv(filepath_or_buffer='/Users/personal/Desktop/Data set/churn_raw_data.csv', header=None, sep=',')
df.columns=['Customer_id','Age', 'Income', 'Outage_sec_perweek','Contacts, Yearly_equip_failure', 'Tenure', 'MonthlyCharge', 'Bandwidth_GB_year']
The issue in the code is with the df.columns line. It's telling me this error: ValueError: Length mismatch: Expected axis has 52 elements, new values have 8 elements.
I know that the issue has something to do with my header. I tried to use 'none" but this doesnt seem to solve my issue. Its as if it wants to me to call on all 52 columns, which I dont want to do. Any help would be amazing.