Learn practical skills, build real-world projects, and advance your career
Created 3 years ago
import numpy as np
import pandas as pd
education_df = pd.read_csv('C:\\Users\\enaama\\Documents\\analyse\\StudentsPerformance.csv')
import matplotlib.pyplot as plt
plt.style.use('seaborn-colorblind')
education_df
cols = list(education_df.columns)
new_cols = []
for col in cols:
new_cols.append(col.strip().replace(' ', ' ').replace(' ', '_').lower())
education_df.columns = new_cols