I have the following structure
col1 col2 col3
1 2 {"a":{"b":2, "c":3}}
col3 contains parsed json as a dictionary, im trying to make a new column for c but not for the rest. applying pandas i managed to do
df["col3"].transform(lambda x: x.get("a").get("c") )
and it worked for c but now when writing the same code for b i get back 'NoneType' object has no attribute 'get'.
(also this is my first question here so very sorry if anything is unclear)