RowID in Table Panda
bluefroguk1 opened this issue · 2 comments
bluefroguk1 commented
I'm hoping to use Panda (using pd.DataFrame(table.to_dict()) ) to help with analysis, however the panda doesn't contain the RowID information needed to push data changes to Coda.io
am i missing something?
Thanks
hillstub commented
Yeah, I think this would be great to add!
For now, I use this as a workaround:
rows = [{'id': row.id,**row.to_dict()} for row in table.rows()]
df = pd.DataFrame(rows)
licht1stein commented
Yeah, I think this would be great to add!
For now, I use this as a workaround:
rows = [{'id': row.id,**row.to_dict()} for row in table.rows()] df = pd.DataFrame(rows)
You can just submit a PR that adds it :)