Hello everyone please I'm having issues resolving code project 10 | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
- 4

Hello everyone please I'm having issues resolving code project 10

Getting columns values in an array format

25th Jan 2022, 6:04 PM
Edifon
Edifon - avatar
25 Respuestas
+ 4
Do not input a string! Pass the variable!
25th Jan 2022, 6:53 PM
Lisa
Lisa - avatar
+ 3
Please link your code so we can help you! And specify which course you mean
25th Jan 2022, 6:06 PM
Lisa
Lisa - avatar
+ 3
look at the task description: the file name is stored in the variable filename. Output only the column of column_name
25th Jan 2022, 6:32 PM
Lisa
Lisa - avatar
+ 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
25th Jan 2022, 6:21 PM
Lisa
Lisa - avatar
0
Can anyone help out 😓
25th Jan 2022, 6:05 PM
Edifon
Edifon - avatar
0
Ok
25th Jan 2022, 6:10 PM
Edifon
Edifon - avatar
0
Explanation The a is the header for the first column, which has values [1 2].
25th Jan 2022, 6:12 PM
Edifon
Edifon - avatar
0
Machine learning
25th Jan 2022, 6:22 PM
Edifon
Edifon - avatar
0
import pandas as pd csv_file=pd.read_csv("file name") print(csv_file)
25th Jan 2022, 6:24 PM
Edifon
Edifon - avatar
0
Ok
25th Jan 2022, 6:33 PM
Edifon
Edifon - avatar
0
Let me give it a try
25th Jan 2022, 6:34 PM
Edifon
Edifon - avatar
0
filename = input ("https://sololearn.com/uploads/files/one.csv ") column_name = input('a')
25th Jan 2022, 6:38 PM
Edifon
Edifon - avatar
0
It's not working
25th Jan 2022, 6:38 PM
Edifon
Edifon - avatar
0
Do not modify the given code! Input is given by the user, you only use the variable that stores the input
25th Jan 2022, 6:39 PM
Lisa
Lisa - avatar
0
Can you give examples?
25th Jan 2022, 6:40 PM
Edifon
Edifon - avatar
0
Do not write inside input() Use pd.read_csv(filename) to read the file
25th Jan 2022, 6:41 PM
Lisa
Lisa - avatar
0
Ok
25th Jan 2022, 6:42 PM
Edifon
Edifon - avatar
0
It's not working
25th Jan 2022, 6:46 PM
Edifon
Edifon - avatar
0
Isn't it supposed to be pd.read_csv("filename")
25th Jan 2022, 6:47 PM
Edifon
Edifon - avatar
0
No, it's pd.read_csv(filename) and then only output the relevant column
25th Jan 2022, 6:48 PM
Lisa
Lisa - avatar