0
Basic programming exercise(Machine learning)
Hi everyone, i am learning the machine learning basic. There is a coding exercise of 'What's in a column'. I do not understand about the question. Do I need to import pandas or numpy? Is there a model code for this exercise? Thanks.
5 odpowiedzi
0
First you should learn from basics .....
Absolutely you'll get answers
0
I use Pandas, I don't remember any model code, it has been a while
0
import pandas as pd
filename = input()
column_name = input()
df = pd.read_csv(filename)
print(df[column_name].values)
don't confuse about inputs
0
you need to import pandas
0
If you're using any kind of module whether it is built-in or not, you need to import them first. So import pandas and NumPy if you're using them.
There is no need for any model just a simple function from Pandas.