Basic programming exercise(Machine learning) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

26th Apr 2021, 2:09 AM
Nic
Nic - avatar
5 Answers
0
First you should learn from basics ..... Absolutely you'll get answers
26th Apr 2021, 3:03 AM
Sâñtôsh
Sâñtôsh - avatar
0
I use Pandas, I don't remember any model code, it has been a while
26th Apr 2021, 3:04 AM
Steven M
Steven M - avatar
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
10th Dec 2021, 11:16 AM
Nethmi Divya
Nethmi Divya - avatar
0
you need to import pandas
10th Dec 2021, 11:52 AM
Nethmi Divya
Nethmi Divya - avatar
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.
17th Jul 2022, 6:40 PM
Omid Afzali