0
python basics
can someone pls help me solve the first project in machine learning (python basics). it’s about getting a column from a numpy array. im a beginner. thanks in adv. this is my code attempt: import pandas as pd pd.options.display.max_columns = 2 df = pd.read_csv('https://sololearn.com/uploads/files/one.csv') arr = df['a'].values print(arr)
4 Respostas
+ 3
When you start the code assignment there would be some default piece of code prepared for you.
It serves a purpose, but you seem to have removed it.
filename = input()
column_name = input()
You can reset the code to the start, using the three dots menu in the code editor.
These two lines will read the data from each test case automatically, you just have to write the code to process it. Try to use these inputs as parameters to the rest of your code.
+ 2
thank you so much for your help!
+ 1
I didn’t know what tags are for. Thank you for the information!
0
For future reference, here's an intro about usage of tags in forum. I see your questions were tagged with 'tag' only, so hopefully this introduction helps you understand tags purpose
https://code.sololearn.com/W3uiji9X28C1/?ref=app