Skip to content
Advertisement

How to extract certain string out of long url kind of string in python using pandas

How to use regex in pandas to extract below field. the below is one of my pandas dataframe column value, but i wanted to only extract ‘eastus’ and keep it as value for this field. how to filter this. this position is always fixed

Sample df:

JavaScript

command i tried:

JavaScript

but its not working

Error:

JavaScript

any suggestion please

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement