pandas字符串运算列在字母前后添加字符

pandas字符串运算列在字母前后添加字符

print(p_table'公式')

p_table'公式' = p_table'公式'.str.replace(r"(a-zA-Z+)", r"p_cell'\\1'", regex=True)
print(p_table'公式')

EUtranReselection

0 selQrxLevMin

1 qrxLevMinOfst

2 selQrxLevMin + qrxLevMinOfst

Name: 公式, dtype: object

0 p_cell'selQrxLevMin'

1 p_cell'qrxLevMinOfst'

2 p_cell'selQrxLevMin' + p_cell'qrxLevMinOfst'

Name: 公式, dtype: object

相关推荐
Y38153266212 小时前
serpbase + Pandas + Jupyter 数据分析实战
jupyter·数据分析·pandas
元Y亨H1 天前
numpy与pandas 的介绍
numpy·pandas
小大宇2 天前
python pandas dataFrame sqlAlchemy案例
python·pandas
chouchuang3 天前
day-040-Pandas可视化与实战
pandas
chouchuang6 天前
day-037-Pandas数据读取
pandas
benchmark_cc8 天前
如何用 Python 进行多周期 K 线合成与时区对齐?基于 QuantDash 与 Pandas 的量化数据清洗实战(附 GitHub 源码)
开发语言·python·github·盯盘·pandas·quantdash·量化数据
梅雅达编程笔记9 天前
零基础学 Python 第14章 | 模块、包与第三方库
开发语言·python·django·numpy·pandas
梅雅达编程笔记9 天前
零基础学 Python 第15章 | 类与对象:面向对象编程入门
开发语言·python·django·numpy·pandas
benchmark_cc9 天前
Python 量化核心基础:前复权、后复权与不复权有什么区别?基于 QuantDash 的数据处理与回测避坑指南
开发语言·python·pandas·量化策略·量化交易·quantdash
人工干智能10 天前
科普:Pandas 索引器 loc 与 iloc 的编程思维
java·人工智能·pandas