trohith89 commited on
Commit
05c67fa
·
verified ·
1 Parent(s): 831570a

Update pages/2_Data_CLeaning_and_Preprocessing.py

Browse files
pages/2_Data_CLeaning_and_Preprocessing.py CHANGED
@@ -112,7 +112,7 @@ if uploaded_file is not None:
112
  bins = [0, 18, 35, 50, 65, 100]
113
  labels = ['Child', 'Young Adult', 'Adult', 'Middle Aged', 'Senior']
114
 
115
- df['age_bins'] = pd.cut(df['CustomerAge'], bins=bins, labels=labels, right = False)
116
 
117
  # df.head()
118
  # Data Cleaning Section
 
112
  bins = [0, 18, 35, 50, 65, 100]
113
  labels = ['Child', 'Young Adult', 'Adult', 'Middle Aged', 'Senior']
114
 
115
+ data['age_bins'] = pd.cut(data['CustomerAge'], bins=bins, labels=labels, right = False)
116
 
117
  # df.head()
118
  # Data Cleaning Section