当前位置:网站首页>[usecols parameter of pd.read\u excel ((), list error reason]
[usecols parameter of pd.read\u excel ((), list error reason]
2022-06-22 07:14:00 【Running_ sdeer】
pd.read_excel(() And usecols Parameters , List error
Pandas version:0.23.4
1、Str- type :excel Default alphabetic column name ,usecols=‘A,B,C’ perhaps ’A:C’ perhaps ’A,B:C’, Or enclosed in parentheses ,usecols=(‘A,B:C’), A tuple . In square brackets , That is, the list will report an error .
2、int-list type : The parameter value is list [0,1,2,5], The read columns can only be listed one by one
3、str-list type :**0.23 Version not supported ,0.24 Later versions support ****usecols=[‘foo’, ‘bar’], Is the column name in the table
4、 function : The passed in function determines whether the column value is true, Such as usecols=lambda x: x.isalpha().
边栏推荐
- C language - deep understanding of arrays
- Wechat applet camouflage page (change the page content regularly)
- Introduction to 51 Single Chip Microcomputer -- minimum system of single chip microcomputer
- JS implementation of random generation of 16 bit key -- Basic accumulation
- Canoe learning notes (1) illustration of new project and channel configuration steps
- Golang calls sdl2, plays PCM audio, and reports an error signal arrived during external code execution.
- Process engine solves complex business problems
- RT-Thread临界段的保护
- Custom implementation of bind method in JS
- 首次用DBeaver连接mysql报错
猜你喜欢

Rebuild binary tree

Introduction and use of cookies

Error when connecting MySQL with dbeaver for the first time

Neuron+ekuiper realizes data collection, cleaning and anti control of industrial Internet of things

如何才能有效缓解焦虑?看看猿辅导怎么说

CNN模型合集 | Resnet变种-WideResnet解读

6. install the SSH connection tool (used to connect the server of our lab)

Theory and application of naturallanguageprocessing

sessionStorage 和 localStorage 的使用

从暴力递归到动态规划
随机推荐
Introduction to 51 Single Chip Microcomputer -- timer and external interrupt
Introduction notes to quantum computing (continuously updated)
matlab 实现中值滤波
C language - deep understanding of arrays
Self attention (notes, for personal use)
Typescript & explain in, keyof, extensions, index signature, record and typeof in detail (updated from time to time)
生成字符串方式
Tpflow V6.0.6 正式版发布
[distributed external detection] Odin ICLR '18
Convolutional neural network (notes, for personal use)
Xh_ CMS penetration test documentation
Rebuild binary tree
JDBC查询结果集,结果集转化成表
【GAN】SentiGAN IJCAI’18 Distinguished Paper
buuctf部分题目wp
Neuron+ekuiper realizes data collection, cleaning and anti control of industrial Internet of things
sessionStorage 和 localStorage 的使用
2021-05-12
Access to control objects in JS
2022年畢業生求職找工作青睞哪個行業?