0

ML TASK1

import pandas as pd one.csv={('a',1,2), ('b',3,4)} df=pd.read_csv(one.csv) arr=df['a'].values print(arr[:0]) i used this code for ML assignment but it is throwing so many errors please correct me.i will learrrn from my mistakes

13th Mar 2021, 5:33 AM
divya 123
divya 123 - avatar
4 Answers
0
read_csv is a method for reading file.
13th Mar 2021, 8:39 AM
Igor Kostrikin
Igor Kostrikin - avatar
0
one.csv is not good name for dictionary Try one = {...} pd.DataFrame(one)
13th Mar 2021, 12:21 PM
Igor Kostrikin
Igor Kostrikin - avatar
0
no this all isn't working,please help me https://www.sololearn.com/learning/eom-project/1094/100
14th Mar 2021, 4:10 PM
divya 123
divya 123 - avatar
0
import pandas as pd df=pd.read_csv(filename) print(df[column_name].values)
14th Mar 2021, 6:44 PM
Igor Kostrikin
Igor Kostrikin - avatar