[英]Extract substring from a string using Python regex
I am working with data frames.我正在处理数据框。 One of my column look like this
我的专栏之一看起来像这样
X
4028 Toolx-2022-01-18_15-26-09.blf.26
4029 Temperaturelow-2022-01-18_15-26-09.blf.27
4031 Temperaturehigh2022-01-18_15-26-09.blf.28
4032 low2022-01-18_15-26-09.blf.29
4032 high2022-01-18_15-26-09.blf.30
Name: X, dtype: object
I want my output like this我想要这样的 output
X
4028 2022-01-18 15-26-09 26
4029 2022-01-18 15-26-09 27
4030 2022-01-18 15-26-09 28
4031 2022-01-18 15-26-09 29
4032 2022-01-18 15-26-09 30
Name: X, dtype: object
Can anyone please help me how to do this in Python?任何人都可以帮助我如何在 Python 中执行此操作吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.