Pandas: Filter rows on value in dictionaries in Series
Advertisements Some columns in my dataframe consist of dictionaries themselves, like this dataframe: df = pd.DataFrame({‘Name’: [‘Alice’, ‘Bob’, ‘Aritra’], ‘Age’: [25, 30, 35], ‘Location’: [ {‘City’: ‘Seattle’, ‘State’: ‘WA’}, {‘City’: ‘New York’, ‘State’: ‘NY’}, {‘City’: ‘Albany’, ‘State’: ‘NY’} ] }) df Name Age Location 0 Alice 25 {‘City’: ‘Seattle’, ‘State’: ‘WA’} 1 Bob 30 {‘City’:… Read More Pandas: Filter rows on value in dictionaries in Series