New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Please explain your questions properly.
+ 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
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)