I have a Pandas DataFrame that I'm creating row-by-row (I know, I know, it's not Pandorable/Pythonic..). I'm creating elements using .loc like so
output.loc[row_id, col_id]
and I'd like to set this value to an empty list, [].
output.loc[row_id, col_id] = []
Unfortunately, I get an error saying the size of my keys and values do not match (Pandas thinks I'm trying to set values with not to an iterable).
Is there a way to do this?
Thanks!