Am I doing this wrong? | Sololearn: Learn to code for FREE!

+1

Am I doing this wrong?

When solving the First code case from the Machine Learning course I can either solve the first Test case or the second, yet it asks that I solve both. This is my code: filename = input() column_name = input() import pandas as pd df = pd.read_csv(filename) print(df['a'].values) Many thanks! Edit: changed 'b' to 'a'

1/17/2022 12:22:16 PM

Gonzalo Rodríguez Hermida

5 Answers

New Answer

+2

no it's not that either

+2

You are taking an input called column_name, you're supposed to use it XD

+1

why do you use 'b' as column name?

+1

Sorry it, should be 'a'

+1

I just realized two seconds after reading your second answer. Thanks!