If I have a column in dataframe with dictionaries:
col1
{10:24, 7:3}
{5:24, 1:2, 7:8}
{1:1}
How to perform operation of extracting keys from each dictionary for each rows? So I need to get:
col1
10, 7
5, 1, 7
1
How to do that? df["col1"] = df["col1"].keys() doesnt work and I don't know why