Basic programming exercise(Machine learning) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

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 - avatar
5 Answers
First you should learn from basics ..... Absolutely you'll get answers
26th Apr 2021, 3:03 AM
Sâñtôsh - avatar
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
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
you need to import pandas
10th Dec 2021, 11:52 AM
Nethmi Divya
Nethmi Divya - avatar
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