当前位置:网站首页>[data preparation and Feature Engineering] perceived data
[data preparation and Feature Engineering] perceived data
2022-06-23 02:36:00 【LoneRanger】
The data in the file
1.CSV file
Standard read file format
import pandas as pd df = pd.read_csv(csv_file) df
Let the data in the first column be indexed
pd.read_csv(csv_file, index_col=0)
2.Excel file
Standard read file format
import pandas as pd df = pd.read_excel(xls_file) df
3. Graphic files
Read the picture
from PIL import Image
color_image = Image.open("test.png")
color_imageTurn to grayscale
from PIL import Image
gray_image = Image.open("test.png").convert("L")
gray_imageColor is three channel
import numpy as np color_array = np.array(color_image) color_array.shape # Color is three channel
The grayscale image is a two channel image
gray_array = np.array(gray_image) gray_array.shape # The grayscale image is a two channel image
Data in the database
( To be added )
Data on the web
( To be added )
come from API The data of
( To be added )
边栏推荐
- Log a log4j2 vulnerability handling
- Apache Druid's engineering practice in shopee
- Call rest port to implement nailing notification
- Li Mu's notes on machine learning -1.2
- what the fuck! If you can't grab it, write it yourself. Use code to realize a Bing Dwen Dwen. It's so beautiful ~!
- Exploit format string vulnerability in CDE
- Learning notes of recommendation system (1) - Collaborative Filtering - Theory
- Digital integrated circuit design process
- Ugui empty button implementation
- HTTP cache
猜你喜欢

Small knowledge points of asset

Interviewer: what is the difference between SSH and SSM frameworks? How to choose??

You must know the type and method of urllib

Information theory and coding

Vulnhub DC-5

Ansible practice of Nepal graph

Anaconda creates a new environment encounter pit

5g access network and base station evolution

WebService details

II Data preprocessing
随机推荐
Salesforce fileUpload (I) how to configure the file upload function
SQLSERVER database restore stored procedure script
What is ISBN code and how to make it
Canvas draw the clock
[target tracking] open source | polytrack: use boundary polygons to quickly track and segment multiple targets, instead of bounding box and mask tracking
6. template for integer and real number dichotomy
Direct collection - super easy to use domestic color matching website
How to customize a finished label template
How to set up an H5 demo of easyplayer locally to play h265 video streams?
Capture passwords of all chrome versions
Single chip microcomputer (STC series 8051 core single chip microcomputer)
Buuctf misc-[actf freshman competition 2020]outline
Tencent cloud server CVM system tool configuration
An article shows you the difference between high fidelity and low fidelity prototypes
How to locate memory leaks
Record a penetration caused by log4j
Call rest port to implement nailing notification
Gorilla/mux framework (RK boot): add swagger UI
How to make word notes beautiful
How to make keyword targeted layout based on search sources?