Python Dataframe Str Extract Usage In R