Open FrankenDeba opened 6 years ago
from pandas import * df=read_csv("data.csv") df.rename(columns={"32.502345269453031":"amount of hour studied"},inplace=True) df.rename(columns={"31.70700584656992":"test scores"},inplace=True)
Hi @FrankenDeba, u can not directly change name like that,you are converting the 1st row values to name and that may affects the results.
from pandas import * df=read_csv("data.csv") df.rename(columns={"32.502345269453031":"amount of hour studied"},inplace=True) df.rename(columns={"31.70700584656992":"test scores"},inplace=True)