The five pandas built-in functions are very convenient
Hello, before modeling, what we must do is to traverse and construct the data, that is, data preprocessing. Today, I will introduce several methods commonly used by Pandas to call its built-in functions to traverse data.
catalog:
0. Data preview 1. apply 2. applymap 3. map 4. agg 5. pipe
0. Data preview
The data here are fictional ex ...
Posted on Fri, 03 Dec 2021 00:33:23 -0500 by w.geoghegan
[Pandas learning notes 02] practical operation of data processing
Author: Huan HaoSource: Hang Seng LIGHT cloud communityPandas is a Python software library, which provides a large number of functions and methods that enable us to process data quickly and easily. This paper will mainly introduce the practical data processing operation of pandas.Series of articles:[Pandas learning notes 01] powerful tool set f ...
Posted on Fri, 26 Nov 2021 10:15:00 -0500 by throx
Love, love, 20 Python functions easy to use
Hello everyone, today I share 20 Python functions that are essential to daily work. These functions are not seen much, but they are very convenient to use. They can greatly improve work efficiency. The content is long, welcome to collect and learn, like praise and support, and there is a technical exchange group at the end of the article. Welco ...
Posted on Thu, 25 Nov 2021 18:57:26 -0500 by bubbasheeko
Data analysis learning
Model building
1.1 characteristic works
Missing value fill
Missing values for category variables: fill in a missing value character (NA) and fill in with the most categoriesMissing values for continuous variables: fill in mean, median and mode
# Fill in classification variables
train['Cabin'] = train['Cabin'].fillna('NA')
train['Embarked'] = ...
Posted on Sat, 20 Nov 2021 07:51:05 -0500 by Topper
❤️ 20000 words, 50 pandas, high frequency operation [pictures and texts, worth collecting] ❤️
Point, knock on the blackboard
First of all, this paper follows the traditional teaching, point to point! Only some functions or processing methods that are frequently used by individuals are introduced.The examples in this article are only used for demonstration. Generally, the examples do not modify the original data. If the code will modif ...
Posted on Sun, 19 Sep 2021 17:00:54 -0400 by GESmithPhoto
[script] Swiss Army knife pandas for data processing
1, Pandas introduction
In Python, pandas includes advanced data structures Series and DataFrame, which makes it very convenient, fast and simple to process data in Python.
There are some incompatibilities between different versions of pandas. Therefore, we need to know which version of pandas we are using.
import pandas as pd
print(pd.__vers ...
Posted on Sun, 05 Sep 2021 17:55:14 -0400 by tony.j.jackson@o2.co.uk