Python pandas: remove everything after a delimiter in a string

前端 未结 4 747
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 03:00

I have data frames which contain e.g.:

"vendor a::ProductA"
"vendor b::ProductA"
"vendor a::Productb"

I need to

4条回答
  •  醉酒成梦
    2020-12-01 03:24

    there is your function:

    def do_it(str):
      integer=0
      while integer

    pass the original string in there. And get the new trimmed string.

提交回复
热议问题