Efficient learning pandas through source code, to benefit a lot

Learn pandas through source code

I do not know is how to learn pandas this package, I first read it again instructional videos, documents and then read it again, when I was in use, two feelings, first, I am in the hands of someone else finishing the document, methods for only some of the important parameters introduced. Second, video tutorials will not give you too will tell you some of the commonly used parameters. Of course, if you organize an official document from the official website, it is very detailed, and also do not see the article. However, you do not have such a complete document, following a good look at the contents.

For a method of obtaining data unique values,


import pandas as pd
tips = pd.unique(data)

Here I only wrote one parameter, data data. Of course, for this method, there are a lot of parameters, the source code has very detailed notes, let's go and see.

I am using a pycharm compiler, first hold down the control key and click on the left mouse button method, then jump to the source code where the method
Here Insert Picture Description
Here Insert Picture Description
jumps here, first of all we can see is an introduction to the method, the following are the parameters the presentation, as well as the return value.
Here Insert Picture Description

Beyond the drop-down, you will find you gave some examples:
Here Insert Picture Description

We should not be afraid of the sight of English to back down, first of all it had a few words over and over again, you Duokanjibian very familiar. Secondly translation software is now so advanced, we do not know how to translate readily Baidu, hence the saying translated a check to understand.

When I use some methods of time, forget what parameters will come to see, really big help to me, but also an example for you to understand, really very good. Recommend to the pandas do not hate the English learners bar

Published 51 original articles · won praise 34 · Views 230,000 +

Guess you like

Origin blog.csdn.net/lzx159951/article/details/104360639