Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Dataframe replace
#1
i have a dataframe that has rows like. i want to get rid of various markings like =, |, ()

i wrote this but it returns the same value without removing

['2 team name = 27.92 4 0 0 20.25( 18) 0 0 0 | 1 0 0 | 27.03 2 | 28.55 2 | 28.35 2 (region west)']


df.replace(to_replace=[ '|', '(' ,')' ,'=' ], value='')
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Question for dataframe to replace INF value zydjohn 0 2,920 Jan-15-2018, 10:00 PM
Last Post: zydjohn

Forum Jump:


Users browsing this thread: 1 Guest(s)