- 4
Hello everyone please I'm having issues resolving code project 10
Getting columns values in an array format
25 odpowiedzi
+ 4
Do not input a string! Pass the variable!
+ 3
Please link your code so we can help you!
And specify which course you mean
+ 3
look at the task description: the file name is stored in the variable filename. Output only the column of column_name
+ 1
👉 Mention which sololearn course
👉 Review the previous lessons on how to read a csv file and output the values of the column
👉 link your code if you need further help
0
Can anyone help out 😓
0
Ok
0
Explanation
The a is the header for the first column, which has values [1 2].
0
Machine learning
0
import pandas as pd
csv_file=pd.read_csv("file name")
print(csv_file)
0
Ok
0
Let me give it a try
0
filename = input ("https://sololearn.com/uploads/files/one.csv
")
column_name = input('a')
0
It's not working
0
Do not modify the given code!
Input is given by the user, you only use the variable that stores the input
0
Can you give examples?
0
Do not write inside input()
Use pd.read_csv(filename) to read the file
0
Ok
0
It's not working
0
Isn't it supposed to be
pd.read_csv("filename")
0
No, it's pd.read_csv(filename) and then only output the relevant column