33

Top 3 New Features in Pandas 1.0

 4 years ago
source link: https://towardsdatascience.com/top-3-new-features-in-pandas-1-0-4a92d98a9a8f?gi=f2a54903ecb8
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Top 3 New Features in Pandas 1.0

A couple of new time and nerve saving features

It’s been a couple of weeks now since Pandas version 1.0 was released and it’s brought some new exciting features, some of them still being experimental though.

RVRJRru.jpg!web

The main idea behind this article is to briefly explore them, and also show you how to upgrade to Pandas 1.0 because you’re probably still running version 0.25. So without much ado, let’s see how to do so.

Upgrade from 0.25 to 1.0

If I were to open up Jupyter Notebook and check out the current version of Pandas library, I’d get this:

yAbiEfQ.png!web

I’m on version 0.25.1, so to upgrade I’d need to execute the following command (can also be done through Jupyter, no need to open up a terminal or command prompt):

If you, however, get some permission errors , run the command line as an administrator, or prefix the command with sudo if you’re on Linux. Now let’s see if everything went as expected:

3Ubeqyy.png!web

Keep in mind that you might not see ‘1.0.1’, depending on when you’re reading the article, it might be an even newer version. Now when that’s done, let’s briefly discuss the dataset I’ll use to make demonstrations, and also where to get it.

Dataset used

I’ve decided to use the MT Cars dataset , a dataset familiar to any R user, great for some basic data manipulation. It can be download from this link , or you can just copy the link and read it directly through Pandas:

nAF7VbF.png!web

Okay, now when that’s out of the way, I can begin with the article!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK