+ 1

How can I solve the Machine learning "The Basics" project?

I have this code right here import pandas as pd df = pd.read_csv('/usercode/files/one.csv') print(df['a'].values) and it works well for the first test case but I can't seem to find a workaround the other test cases. Much appreciated

15th Dec 2021, 9:46 AM
Alazar Michael
Alazar Michael - avatar
3 ответов
+ 4
Here is the code I used to solve the challenge. I hope it helps :) import pandas as pd filename = input() column_name = input() df = pd.read_csv(filename) arr = df[column_name].values print(arr)
15th Dec 2021, 11:57 AM
Vasiliki B.
Vasiliki B. - avatar
+ 3
You are welcome 🙂
15th Dec 2021, 5:15 PM
Vasiliki B.
Vasiliki B. - avatar
+ 1
WOW, I can't believe how easy you made it look, thank you so much!!!
15th Dec 2021, 4:07 PM
Alazar Michael
Alazar Michael - avatar