Python data analysis - drawing-2-Seaborn advanced drawing-4-classification diagram

1, Classified scatter diagram 1.stripplot Function: seaborn.stripplot Common parameters: x,y,hueReceive the variable name in data to represent the selected drawing variable, hue pass in the classification variable to classify the color.dataReceive DataFrame, array, list and series to represent the data set used for drawing.order,order_hueRe ...

Posted by Gamerz on Sat, 04 Dec 2021 22:34:19 -0800

Python modular programming (higher order functions)

Recursive function Recursive function is to define a function, and then call this function within the function There must be an end in the recursive function, or it will be called one by one until more layers are called and the stack overflows A recursive function is an entry layer by layer and a return layer by layer Preliminary underst ...

Posted by aeonsky on Sat, 27 Nov 2021 22:31:34 -0800

Using the price level to correct the box office data, is Changjin Lake still the box office champion?

Zero, write in front First of all, it is purely entertainment, and there are many loose places!!           Mankiw's macroeconomics mentioned an example when talking about the CPI (consumer price index), that is, avatar ranked first at the box office with us $761 million at that time, but after considering inflation, a ...

Posted by ixalmida on Tue, 23 Nov 2021 12:23:54 -0800

Top 1 scheme of iFLYTEK 2021 advertising click through rate estimation challenge

Hello, as a beginner of machine learning, I participated in 2021 iFLYTEK AI developer competition some time ago. The team name is "write a story" I participated in the big data competition for the first time. I mainly chose the relatively easy structured data competition. Among the five competitions, three entered the top five (advert ...

Posted by RClapham on Sat, 20 Nov 2021 17:44:24 -0800

Python visualization module -- Matplotlib

Learning objectives target Master common statistical charts and their significancePlot scatter and histogramapplication Explore the relationship between different variables Matplotlib can draw line chart, scatter chart, histogram, pie chart. We need to know the meaning of different statistical charts to decide which statistical chart t ...

Posted by Arenium on Wed, 17 Nov 2021 21:12:26 -0800

Python makes mosaic images

Python makes mosaic images 200 lines of Python code complete the script for generating mosaic pictures Knowledge points What is RGBHSV color spacePython BasicsIncluding the use of the pilot libraryUse of multiprocessing LibraryPrinciple of making mosaic image effect: You can generate pictures similar to the following: After zooming ...

Posted by mattonline on Mon, 15 Nov 2021 23:58:41 -0800

Handle missing and abnormal values in the data

preface In order to cope with my homework, I wanted to find a code on the Internet and handed it in. I found that I didn't have what I wanted, so I wrote it in tears for two days. In order to study hard, I rolled it up with my classmates 🤣 If you need to hand in your homework, just look at the source code directly. In the CleaningData () ...

Posted by katlis on Sat, 23 Oct 2021 07:36:05 -0700

ECharts from introduction to advanced 6000 words long, with pictures and texts

Echarts quick start Import the echorts.js filePrepare a box to present the chartInitialize the ecarts instance objectPrepare configuration itemsSet the configuration item to the ecarts instance object <div style='width: 600px; height: 400px;'></div> <script src="./lib/echarts.js"></script> <script> // Initializ ...

Posted by skyer2000 on Thu, 30 Sep 2021 16:25:07 -0700

Kernel density estimation and visualization of data: a Python implementation

The main references of this paper are as follows: Silverman B.W. Density Estimation. Chapman and Hall, London, 1986Standard ISO 13528 Example data introduction The sample data used in this blog are tables 2.1 and 2.2 in reference 1 of this blog, as follows: Mental illness treatment duration data sheet Geyser burst duration data sheet ...

Posted by Darkness Soul on Mon, 20 Sep 2021 04:22:14 -0700

Data visualization of python for beginners (word cloud diagram)

1. The generation of word cloud needs to confirm that wordcloud and matplotlib have been installed. The download library can be downloaded through cmd or by directly entering instructions on the Jupiter notebook, or from the website https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud Download the installation package manually on the, place th ...

Posted by s2day on Sat, 18 Sep 2021 01:17:15 -0700