Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RowID in Table Panda #41

Open
bluefroguk1 opened this issue May 12, 2021 · 2 comments
Open

RowID in Table Panda #41

bluefroguk1 opened this issue May 12, 2021 · 2 comments
Assignees
Labels

Comments

@bluefroguk1
Copy link
Contributor

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
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants