0
Stuck
Getting a column from a numpy array. Task Given a csv file and a column name, print the elements in the given column. Input Format First line: filename of a csv file Second line: column name Output Format Numpy array Sample Input https://sololearn.com/uploads/files/one.csv a File one.csv contents: a,b 1,3 2,4 Sample Output [1 2]
2 Antworten
+ 1
Nice question, but where is your attempt?you need to share your failed attempt so that we can edit it and help you. Share the code link please
Also, you need to use both pandas and numpy.
pandas will read the csv files and numpy will give the values of the input column
0
I've tried printing df it's rows and colums somehow i cant do it