🛠️ Scheduled Maintenance | We’ll be undergoing scheduled maintenance and upgrades between 00:00 PST Jan 26th until 00:00 PST Jan 28th. There may be brief interruption of services in that period. We apologize for the inconvenience.

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.
Anybody can ask a question
Anybody can answer
The best answers are voted up and moderated by our team

difference between Dataframe and class objects

difference between Dataframe and class objects




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

1 Answer

365 Team

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.