This Tip is about Summarizing the Dataframe with a single function. By default, pandas provides the DF dot describe function to show you the various statistical summaries of the numeric columns in your data set.
Let's see what this Single Function is How to apply it.
🔹 Tips and Tricks on Summarizing a Dataframe in Python Pandas.
Now, this is your Titanic data set. on doing describe, we have the maximum minimum mean standard deviation, all the different percentiles all this information is readily available to you.
There is a more advanced way of doing that we have seen this also earlier. This is based on the pandas summary package, this is an additional package that you need to install from that data frame summary.
If you call data frame summary on a given data frame, called Data Frame summary on df, this creates a data frame summary object from this object, extract a particular column.
This gives you a more detailed information about that column. A lot of information is present here. Now, there is a more enhanced way of getting a comprehensive view of the various analysis reports for all the columns in a data frame that you can get it using pandas profiling package.
This is something that you need to install in the first place if you haven't done so you need to run pip install pandas profiling this will install this package, then import it then just with one single function you can generate full fledged report on your data frame.
Let me know in the comments section if you have any questions!
If you enjoyed this video, be sure to throw it a like and make sure to subscribe to not miss any future videos!
Thanks for watching!
#machinelearningplus #python #pandas #datascience