Skip to content
Advertisement

Tag: substr

python substrn cells in a column dataframe

I have this data frame with this kind of column: I need to clean this up and leave from “DCG_” up to where “</div>” begins: Most of the cells in this column vary where the “DCG_” is located as well as the “</div>”, I’m trying to use the following code line for this: but it just returns all null Answer

Advertisement