Skip to main content

Python Advanced- GroupBy uses

Another post starts with you beautiful people!
Today we will learn about how to use GroupBy in datasets.
For more details please visit here what is groupby?


We will apply groupby in the drinks data set which you can download from here- download drinks dataset

Let's starts some hand on the drinks dataset-



The result will look like below -

Now let's find out some info from this dataset-






Try out above examples in your notebook and you will come to know in which situation we can use groupby,mean,median.
Comment if you face any issue.

Comments

Popular posts from this blog

Machine Learning-Logistic Regression

Another post starts with you beautiful people! I appreciate that you have shown your interest in Machine Learning track and enjoyed my previous post about  Linear Regression   where we learned the concept with the case study of bike sharing system. Today we will continue our Data Science journey and learn about  Logistic Regression . Like all regression analyses, the logistic regression is a predictive analysis. The fact is that linear regression works on a continuum of numeric estimates. In order to classify correctly, we need a more suitable measure, such as the probability of class ownership . Thanks to the following formula, we can transform a linear regression numeric estimate into a probability that is more apt to describe how a class fits an observation : probability of a class = exp(r) / (1+exp(r)) r is the regression result (the sum of the variables weighted by the coefficients)  exp is the exponential function.  exp(r) corresponds to Eu...

How to convert your YOLOv4 weights to TensorFlow 2.2.0?

Another post starts with you beautiful people! Thank you all for your overwhelming response in my last two posts about the YOLOv4. It is quite clear that my beloved aspiring data scientists are very much curious to learn state of the art computer vision technique but they were not able to achieve that due to the lack of proper guidance. Now they have learnt exact steps to use a state of the art object detection and recognition technique from my last two posts. If you are new to my blog and want to use YOLOv4 in your project then please follow below two links- How to install and compile Darknet code with GPU? How to train your custom data with YOLOv4? In my  last post we have trained our custom dataset to identify eight types of Indian classical dance forms. After the model training we have got the YOLOv4 specific weights file as 'yolo-obj_final.weights'. This YOLOv4 specific weight file cannot be used directly to either with OpenCV or with TensorFlow currently becau...

Identify Eight types of Indian Classical Dance forms with YOLOv4

Another post starts with you beautiful people! Thank you all who had followed my last post about  install and compile YOLOv4 in Windows10   and could able to successfully set up the Darknet in their machines. As I promised in last post and you asked for, in this post I am going to share you the steps required for training a custom object with YOLOv4. If you are seeing my blog first time, I recommend you to first follow my  last post  and then proceed further. For this exercise I have choosen a dataset of eight Indian Classical Dance forms- Manipuri from Manipur Bharatanatyam from Tamil Nadu Odissi from Orissa Kathakali from Kerala Kathak from Uttar Pradesh Sattriya from Assam Kuchipudi from Andhra Pradesh Mohiniyattam from Kerala You can download the dataset from this hackethon link . After downloading the dataset , you need to create 8 folders with class name and copy respective images from train folder to there. For this work I have writt...