小编adi*_*uri的帖子

can I use applymap to change variable names of dataframe

If I want to change variable names in a data frame using pandas can I change the names without using pandas.df.rename() function but by using applymap() For example

Registrar   Enrolment Agency    State   District    Sub District    Pin Code    Gender
Allahabad Bank  Tera Software Ltd   Jharkhand   Ranchi  Namkum  834003  M
Allahabad Bank  Tera Software Ltd   Jharkhand   Ranchi  Ranchi  834004  F
Allahabad Bank  Vakrangee Softwares Limited Gujarat Surat   Nizar   394380  M
Run Code Online (Sandbox Code Playgroud)

I need to fill spaces in the variable names in the above …

python pandas

3
推荐指数
1
解决办法
468
查看次数

标签 统计

pandas ×1

python ×1