python function part

python function Function, also known as method, is a reusable and single function. Function improves the reuse rate of code and the modularization of application. Appropriate modularization will make the program easier to maintain, standard Choose a professional tool, The function name should be in lowercase in English as far as ...

Added by shadow_blade47 on Tue, 01 Feb 2022 21:47:08 +0200

Java basic syntax 2

Java basic syntax 1 type conversion In Java, some data types can be converted to each other. There are two cases: automatic type conversion and forced type conversion. 1.1 implicit transformation (understanding) Assign a value or variable representing a small data range to another variable representing a large data range. This conversion mo ...

Added by poison6feet on Tue, 01 Feb 2022 20:53:55 +0200

Some questions asked in the python back-end interview

1, python related issues 1. Q: what's the difference between python2 and python3? code: The default encoding of Python 2 is asscii, which is one of the reasons why we often encounter encoding problems in Python 2. As for why asscii is used as the default encoding, the reason is that Unicode did not appear when Python was born. Python 3 uses ...

Added by phpBever on Tue, 01 Feb 2022 20:22:51 +0200

Filter feature filtering + random forest modeling + Kaggle--Elo Merchant Category Recommendation

Data preprocessing process thinking import pandas as pd import numpy as np data fetch train = pd.read_csv("preprocess/train.csv") test = pd.read_csv("preprocess/test.csv") Stochastic forest model prediction Feature selection – Pearson correlation coefficient (train.shape, test.shape) ((201917, 1700), (123623, 1699)) # Ext ...

Added by nickholas on Tue, 01 Feb 2022 20:18:25 +0200

python virtual environment

For Python development projects, using a virtual environment is the recommended best practice. By creating a virtual environment, you can isolate project tools and avoid version conflicts with other project tools. For example, you may be maintaining an old Web project that requires Django 1.2 Web framework, but then you will work on a new proje ...

Added by ironman32 on Tue, 01 Feb 2022 19:48:20 +0200

python realizes the operation of remote server

preface During the test process, we often encounter the need to upload local files to the remote server, or pull the files on the server to the local. In the past, we often used the xftp tool. Today, we will introduce a python library Paramiko, which can help us upload and download remote servers through code. You can also input operation comma ...

Added by BobcatM on Tue, 01 Feb 2022 18:49:14 +0200

Introduction to superset deployment, installation and use

Introduction to superset deployment, installation and use Superset overview Apache Superset is an open source, modern and lightweight BI analysis tool. It can connect with a variety of data sources, has rich icon display forms, supports custom dashboards, and has a friendly user interface, which is very easy to use. Superset application scen ...

Added by EPCtech on Tue, 01 Feb 2022 16:46:34 +0200

Loan risk prediction

Loan default risk prediction The project comes from the Kaggle competition. It is required to predict whether the customer's loan will default according to the customer's credit card information, installment information, credit bureau information and so on. Load module and build environment import numpy as np import pandas as pd import matpl ...

Added by Darhazer on Tue, 01 Feb 2022 16:10:52 +0200

04 data types and operators | introduction to Python

data type Number Integer An integer is a type that represents an integer. The type name is int. Variables are abstract concepts that store data. Assign values to variables with the equal sign =, Python allows multiple variables to be assigned at the same time. The name of a variable is called the variable name. The variable name cannot be ...

Added by kristen on Tue, 01 Feb 2022 15:38:11 +0200

China's air quality index (AQI) and its calculation method

1. Introduction The establishment of ambient air quality standards can play a positive role in ambient air quality management, protecting human health, maintaining ecological and environmental security, and promoting the harmonious and sustainable development of man, society and nature. In the 1970s, the United States first established the amb ...

Added by matthewlesh on Tue, 01 Feb 2022 14:59:15 +0200