What is the equivalent of R's sub
/ gsub
functions for Python pandas
' Series
or DataFrame
?
For example, in R, my code is
schData<-gsub("/"," by ",schData,ignore.case=F)
What would be equivalent operation in Python when schData
above is as follows:
>>> type(schData)
Out[N]: pandas.core.series.Series
for regular strings there is the re.sub
function but that only seems to work with strings