Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
Please explain your questions properly.
17th Dec 2020, 5:47 PM
Ddhruv
Ddhruv - avatar
+ 1
import pandas as pd filename = input() column_name = input() df = pd.read_csv(filename) arr = df[column_name].values print(arr) #filename and column_name are arguments that user will input and just write those arguments inside the function you can get the answer
18th Jan 2022, 10:04 AM
Sohail Afridi
Sohail Afridi - avatar
0
import pandas as pd filename = input('/usercode/files/one.csv \n') column_name = input('a') a=pd.read_csv(filename) b=a[column_name].values print(b)
20th Jan 2021, 11:11 AM
Vu Ngoc Anh
Vu Ngoc Anh - avatar