The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

difference between Dataframe and class objects

difference between Dataframe and class objects

0
Votes
1
Answer

Hi,

 

I would like to know the difference between a Dataframe and a class in Python, in terms of functionality.

1 Answer

365 Team
0
Votes

Hi Marta!
Thanks for reaching out.
By definition, a class is a code template for creating objects.
This means that you can define a class that will create a certain object for you when this class has been instantiated.
Then, the DataFrame is a type of pandas object. Therefore, you can say there’s the pandas DataFrame class, that is code template that can create a DataFrame for you.
I agree that unless applied into practice, these terms may sound confusing but I am sure that if you do the relevant exercises, you will realise the distinction can become quite obvious.
Hope this helps.
Best,
Martin

×
LAST CHANCE
Ready to Learn Data Science?
50% OFF