当前位置:网站首页>Brief introduction to the usage of iloc in dataframe
Brief introduction to the usage of iloc in dataframe
2022-06-26 01:44:00 【Passion6378】
grammar :df.iloc[: , :]
1, The preceding colon represents the selected row , The following colon represents how many columns are selected
2, The principle of left closing and right opening
Explain by a set of columns
df.iloc[0:1 , :] # Select the first 1 That's ok df.iloc[0, :] # Select the first 1 That's ok df.iloc[1:3 , :] # Select the first 2 Go to the first place 4 That's ok , The first 4 Line unselected df.iloc[: , 1:2] # Select the first 2 Column df.iloc[:, 1] # Select the first 2 Column df.iloc[: , 2:4] # Select the first 3 Column to the first 5 Column , The first 5 Column is not selected df.iloc[1:3 , 2:4] # Select the first 2 Go to the first place 4 That's ok , And No 3 Column to the first 5 Column .3 That's ok ,5 Column is not selected , The principle of left closing and right opening
边栏推荐
- --都市修炼手册之SQL-- 第一章 基础复习
- 2022 explosion proof electrical operation certificate examination question bank and simulation examination
- Oracle常用的基础命令
- PTA class a simulated sixth bomb: 1156-1159
- Basic concepts of machine learning
- What is the process of opening a mobile card account? Is it safe to open an account online?
- Web Testing
- regular expression
- 清甜女孩李斯霞 受邀担任第六季完美童模全球总决赛小主持人
- PTA class a simulated first bomb: 1132-1135
猜你喜欢
随机推荐
JQ user defined attribute value
Explication du script correspondant à l'assertion Postman
Dataframe converts the data type of a column
web测试
easyexcel读取文件
GUN make (5) makefile中的变量
浅谈接口测试(二)
How to search papers in a certain field
Focal loss
JSON实例(一)
Summary of informer's paper
Postman断言对应脚本的解释
PTA class a simulated second bullet: 1136-1139
Forgotten Jieba participle
biggan:large scale gan training for high fidelity natural image synthesis
木瓜蛋白酶的特点及相关特异性介绍
GNN (graph neural network) introduction vernacular
PTA class a simulated first bomb: 1132-1135
pixel 6 root
2022 documenter general basic (documenter) exam simulation 100 questions and online simulation exam









