Blasterai/codaio

RowID in Table Panda

bluefroguk1 opened this issue · 2 comments

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

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)

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 :)