How To Give Name To A Size Column In Python

It is quite common to use size() in Python. size() function gives you a total number of elements.

Now, if it is that easy and straight forward, then why am I writing about it? Isn’t it?

Well, calculating the size or getting the output of the size() function is very straight forward, but when it comes to labeling this value, things become more complicated.

Let’s understand this with the help of an example.

Input Data

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store