[Python hundred days basic series] addition, deletion, modification and query of Day16 - Pandas data

1, Viewing of Pandas data 1.1 view Dataframe: print(df);print(df.head(6));print(df.tail(6));print(df.sample(6)) 1.2 view Series: print(ser); print(df[‘salary’]) 1.3 view DF basic information: print(df.info()); print(df.shape) 1.4 view df basic statistical indicators: print(df.describe()) 1.5 view df column name: print(df.co ...

Posted by Assim on Tue, 02 Nov 2021 07:46:09 +0100

Raspberry Pi raspberry pie 4B complete process record of installing Python 3 + opencv (super detailed) [tutorial]

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface The ARM CPU architecture used by raspberry school is different from the X86 CPU architecture of PC. due to the different platform capabilities of the two, not all the software pac ...

Posted by bobthebuilder on Mon, 01 Nov 2021 14:38:49 +0100

[python] take the blog Garden Network as an example to realize the separation of program and data by using ini configuration file in learning automation test

preface Where should the page positioning elements used in UI automation test be stored? What I want to say is that if you use the PO design pattern to design test cases, you can store the positioning elements in each page or separately in a directory. For new keys, different pages correspond to files with different names to store the positioni ...

Posted by johnkperks on Mon, 01 Nov 2021 03:57:47 +0100

Watermelon picking decision tree

catalogue 1, Decision tree 1. Meaning of decision tree: 2. Advantages and disadvantages 2, Decision tree - pick watermelon 1. Create an. ipynb file with jupyter 2. Code part   3, The SK learn library implements the algorithm code of ID3, CART and C4.5 respectively 1.ID3 algorithm 2.C4.5 algorithm 3.CART algorithm 4, Summary ...

Posted by Michael001 on Sun, 31 Oct 2021 14:29:04 +0100

Python | paging pdf files

I don't know if you have ever encountered such a situation, such as an e-book in pdf format. We often browse part of it, and the e-book has a large number of pages. Whenever you need to browse, you need to turn to the corresponding page number, which is a little cumbersome. In other cases, for example, if we want to share part of the contents ...

Posted by pragma on Sun, 31 Oct 2021 12:38:27 +0100

CSDN hot list and huaweiyun blog can be used to practice Python scratch crawler

This blog is a supplement to the knowledge of the sweep selector. Sweep selector The scratch framework has its own data extraction mechanism. The related content is called selector seletors, which can select the specified part in HTML through XPath and CSS expressions. The sweep selector is implemented based on the parsel library, which is a ...

Posted by heshan on Sun, 31 Oct 2021 09:57:39 +0100

Implementation of hierarchical clustering in python

Hierarchical clustering algorithm As the name suggests, hierarchical clustering is clustering layer by layer. Large clusters can be divided from top to bottom, which is called splitting method; It can also aggregate small categories from bottom to top, which is called condensation method; However, the bottom-up condensation method is commonly ...

Posted by hostcord on Sun, 31 Oct 2021 08:34:21 +0100

Black horse programmer python online class notes (Continued)

Object oriented encapsulation case 01. Xiaoming loves running demand Weight 75 kgLose 0.5kg per runEat and gain 1 kg class Person: def __init__(self,name,weight): # self. Attribute = formal parameter self.name = name self.weight = weight def __str__(self): return "My name is%s Weight is%.2f kg ." % (sel ...

Posted by highrevhosting on Sun, 31 Oct 2021 04:33:28 +0100

python job sharing: how to use Tuhare opts optimization algorithm to calculate the optimal portfolio of SSE 50

TushareID: 469107 Hello, everyone. The python assignment sharing in this issue is: how to use Tuhare's opts optimization algorithm to calculate the optimal portfolio of SSE 50 (of course, there are two restrictions: the first is the SSE 50 portfolio in a specific period of time, and the second is the stock price data in a specific historical pe ...

Posted by bharrison89 on Fri, 29 Oct 2021 16:24:19 +0200

Beginners can understand it at a glance. Python 1

Beginners can understand the introduction of python at a glance First introduce the most basic usage of math. Using math can help you better perform simple calculations, such as square, root, etc. import math math.sqrt(12.0) dir(math) dir() returns all properties and methods of the specified object without values. This function will return ...

Posted by nocniagenti on Thu, 28 Oct 2021 22:30:44 +0200