You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add string methods removeprefix and removesuffix #8886
Please note: if we want to be compatible with Python < 3.9 or Pandas < 1.4, the implementation shouldn't rely on the standard library's existence of these two methods. For example, in Python 3.8 they weren't implemented yet.
PR created @jrbourbeau and @jsignell . If we required pandas >= 1.4 this would have been really trivial, but as we don't, I had to make sure it works with pandas < 1.4, which requires some manual work.
Activity
jrbourbeau commentedon Apr 6, 2022
Thanks @jorloplaz -- I agree this would be a nice addition. Is this something you're interested in working on?
jorloplaz commentedon Apr 7, 2022
I'll see what I can do. This'd be my 1st issue and you tagged it as a good 2nd one, but I think I can manage.
jorloplaz commentedon Apr 12, 2022
PR created @jrbourbeau and @jsignell . If we required
pandas >= 1.4this would have been really trivial, but as we don't, I had to make sure it works withpandas < 1.4, which requires some manual work.Hope it's decent enough!