DEV Community

Sean Atukorala
Sean Atukorala

Posted on

2 1

Basic Overview of Summary Functions using Pandas

Hello everyone, in this blog post I'll cover some Summary Functions that the Pandas Python Data Analysis Library offers. Let's get started!

List of Summary Functions

Describe Function

The describe() function is used to obtain a informative statistical summary of a given Pandas DataFrame. The data that is displayed if the DataFrame contains numerical columns include the following(which is shown only the numerical columns):

  • count - Amount of not-null values
  • mean - Average value of the column values
  • std - Standard deviation of the column values
  • 25% - Shows the value of the 25th percentile
  • 50% - Shows the value of the 50th percentile
  • 75% - Shows the value of the 75th percentile
  • max- Maximum value contained in the column values

Note: The percentile value of the column data indicate how many of the values that are less than a given percentile. A percentile is a value on a scale of 100 that indicates the percent of a dataset that is equal to or below it

Info Function

The Info() function is used to display information about the DataFrame that it is used on. The information provided by it include:

  • Number of columns in the DataFrame
  • Column labels
  • Column data types
  • Memory usage
  • Range index
  • Number of cells in each column

Note: The info() function does not have a return value

Value Counts Function

The value_counts() function returns a series containing counts of unique values.

The output object will be ordered in descending fashion. This means the first element is the most frequently-occurring element.

Note: this function excludes NA values by default

Conclusion

Well that's it for this post! Thanks for following along in this article and if you have any questions or concerns please feel free to post a comment in this post and I will get back to you when I find the time.

If you found this article helpful please share it and make sure to follow me on Twitter and GitHub, connect with me on LinkedIn, subscribe to my YouTube channel.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay