I have a dataframe such that the column contains both json objects and strings. I want to get rid of rows that does not contains json objects.
Below is how my dataframe
df[df.applymap(np.isreal).sum(1).gt(0)] Out[794]: A 2 {'a': 5, 'b': 6, 'c': 8} 5 {'d': 9, 'e': 10, 'f': 11}