Advanced tutorial of Pandas: rearrangement and rotation of Dataframe
brief introduction
Using Pandas's pivot method, DF can be rotated and transformed. This paper will explain the secret of pivot in detail.
Using Pivot
pivot is used to reorganize the DF, and use the specified index, columns and values to reconstruct the existing DF.
Take a Pivot example:
Through pivot change, the new DF uses the value ...
Posted by Angry Coder on Mon, 31 Jan 2022 02:35:06 +0100
Taobao user behavior analysis project
Taobao user behavior analysis project
Note: the project passes the Jupiter notebook. Third party libraries such as pandas, numpy, matplotlib and seaborn are used to analyze the data in different dimensions.
1, Project background
Taking Taobao app platform as the data set, this data report analyzes the behavior of Taobao users through industr ...
Posted by bookbuyer2000 on Mon, 31 Jan 2022 00:42:19 +0100
Pandas advanced tutorial: merging of Dataframe
brief introduction
Pandas provides many powerful functions of merging Series and Dataframe, which can facilitate data analysis. This article will explain in detail how to use pandas to merge Series and Dataframe.
Using concat
The most commonly used method is DF concat. Let's look at the following:
pd.concat(objs, axis=0, join='outer', i ...
Posted by Tsukasa on Sun, 30 Jan 2022 12:54:23 +0100
SVM support vector machine realizes a linear classification
When support vector machine makes decision, the selected decision boundary needs to meet a condition, that is, the distance from the nearest point in the two classifications is the longest. It can also be understood that when we use support vector machine for classification, what we need to do is to maximize the distance between the decision bo ...
Posted by cypher235 on Sun, 30 Jan 2022 04:45:24 +0100
"Dragon Boat Festival" send relatives, send elders, zongzi visual screen to help!
Introduction to this article
The Dragon Boat Festival is coming. How about traveling? Go home? Visit relatives and friends? You have to bring zongzi. Then:
What brand of zongzi do you choose?What flavor of zongzi do you choose?What price range to choose?
This year, Huang climbed the "zongzi data" on jd.com in Python to analyze it ...
Posted by donbre on Sun, 30 Jan 2022 02:59:28 +0100
Ex6_ Machine learning_ Wu Enda course assignment (Python): SVM Support Vector Machines
Ex6_ Machine learning_ Wu Enda course assignment (Python): SVM Support Vector Machines
instructions:
This article is about Mr. Wu Enda's learning notes of the machine learning course on Coursera.
The first part of this paper first introduces the knowledge review and key notes of the corresponding week of the course, as well as the i ...
Posted by Fatboy on Sun, 30 Jan 2022 00:23:31 +0100
Data analysis, random distribution, sorting, scipy common APIs
1, Random number module
Generate random number sequences that obey specific statistical laws.
(1) binomial distribution
The binomial distribution is the Bernoulli test that repeats n independent events. In each test, there are only two possible results, and the occurrence of the two results are opposite to each other and independent of each ...
Posted by tress on Sat, 29 Jan 2022 10:48:47 +0100
I reluctantly spent more than 20 minutes to meet the requirements of my sister, but
1, Narration (beginning of story)
The other day, my sister asked me to go out secretly and asked me to see a movie emmm.... It's nothing. Let's go. Hey, hey ~
Go??
I regretted going there. I found a park and sat watching movies on my mobile phone Feeding mosquitoes, sweating, watching boring movies, the key is that she doesn't let me idle, ...
Posted by Mchl on Sat, 29 Jan 2022 02:34:11 +0100
Hands on data analysis_ Chapter 2: Section 3: Data Visualization
**Review: * * after reviewing the first chapter, we have a basic understanding of the Titanic data and some basic statistical methods. In the second chapter, we learned the data cleaning and reconstruction to make the data easier to understand; Today we are going to learn section 3 of Chapter 2: data visualization. We mainly introduce the Pytho ...
Posted by juxstapose on Fri, 28 Jan 2022 19:20:04 +0100
Everyone should have dreamed of winning the lottery! I use Python to realize your fantasy. If you win, remember to divide me!
I think everyone should be the same as Xiaobian. Xiaobian usually spends a few yuan to buy a few notes when he passes by the lottery shop! After all, what if you want to win the prize, right! Then who still works, although it may be equivalent to a house! But it's all money!
But often they don't win, or about five yuan! Hahaha, maybe it's no ...
Posted by lanrat on Fri, 28 Jan 2022 15:40:22 +0100