Super detailed Python matplotlib drawing histogram
Review review
Python provides a large number of excellent function packages for data display. Among them, matplotlib module can easily draw and make high-quality data packages such as line chart, histogram and scatter chart.
About the matplotlib module, we have studied the basic framework and common methods of matplotlib in the early stage
P ...
Posted by Glen on Wed, 17 Nov 2021 23:51:38 -0800
Teach you to use SQL for data analysis
Absrtact: using SQL as the entry of data query and analysis is an idea of data full stack.
This article is shared from Huawei cloud community< How to use SQL to analyze data? >, author: zuozewei.
preface
We process user data in real time through OLTP (online transaction processing) system, and we also need to analyze them in OLAP ( ...
Posted by neutra on Wed, 17 Nov 2021 23:07:19 -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
Example verification and thinking of Markowitz model (including Python code)
catalogue
Brief introduction of Markowitz model
1, Principle
2, Correlation formula
Example verification
1, Method selection
2, Train of thought
① Assumptions
② Set
③ Attention
3, Practice
① Data preparation
② The combination weight is calculated by Monte Carlo method
③ Select the effective frontier combination
④ Stock performan ...
Posted by dammitjanet on Wed, 17 Nov 2021 20:12:37 -0800
Getting Started with Python Web Crawlers
Python Web Crawler (1) Getting Started
Libraries used: requestspip+BeautifulSoup4pip+tqdmpip+html5lib
python version: 3.8
Compilation environment: Jupyter Notebook (Anaconda3)
Tour: Chrome
Knowledge involved: HTML Hypertext Markup Language
, What is a crawl
1. Web Crawler (Web Crawler or Web Spider)
It is a program that aut ...
Posted by Vince889 on Wed, 17 Nov 2021 09:13:43 -0800
Comprehensible implementation of K-means clustering algorithm
Introduction to K-means clustering algorithm
k-means clustering algorithm is an iterative clustering analysis algorithm. It is also regarded as unsupervised learning, the simplest clustering algorithm.
The overall idea is to divide the data into K groups, randomly select K objects as the initial cluster center, then calculate the dis ...
Posted by lore_lanu on Wed, 17 Nov 2021 07:53:59 -0800
Getting started with Python day9
inherit
Inheritance? Something inherited from your elders The question is: what did you inherit when you inherited? Class inheritance: What is in the class? Variables and methods class son(father) This can even just write pass But if the method in father wants to pass parameters to object variables Pass parameters in son()
Yo ...
Posted by kaumilpatel on Wed, 17 Nov 2021 07:02:17 -0800
python+mysql+tkinter student information management system
requirement analysis
(1) Using mysql to store student and administrator information (2) The graphical interface is created through tkinter module to realize the login of the administrator, the addition, deletion, modification and query of student information, and the modification of the administrator's own password.
Whole engineering class an ...
Posted by ViN86 on Wed, 17 Nov 2021 04:36:53 -0800
Object oriented implementation in python
If you define a class class Class name:
pass
How to instantiate an object through a class Attribute correlation
Distinction and judgment basis of attributes and variables
difference
concept
A variable is a variable that can be changed“An attribute is a characteristic of an object“ Access rights
...
Posted by miligraf on Wed, 17 Nov 2021 01:06:28 -0800
Python realizes high-precision addition calculation
Title Source: Central Europe 2000
Question No.: ZOJ1205
Topic Description: addition of decimal large numbers
Enter description Output description analysis:
1. First, we need to determine how many arrays we need to receive
Here is the first input method we traditionally define, which is direct input
n=int(input()) # Indicates that th ...
Posted by CBG on Tue, 16 Nov 2021 20:58:02 -0800