0

Can anyone tell me if there's anything wrong with this code? I tried it in sololearn python and it's showing attributeerror

import pandas as pd data=[['E01','Rithika','F'],['E02','Geethu','F'],['E03','Rahul','M'],['E04','Anita','F'],['E05','Kiran','M']] columns=['Empno','name','gender'] df=pd.DateFrame(data,columns) print(df)

19th Jun 2021, 4:16 PM
Sam
Sam - avatar
2 ответов
+ 5
it is "DataFrame", not "DateFrame"... and second argument should be passed as named argument: df=pd.DataFrame(data,columns=columns)
19th Jun 2021, 4:38 PM
visph
visph - avatar
0
Ohkk thank you
20th Jun 2021, 8:09 AM
Sam
Sam - avatar