Skip to content

Instantly share code, notes, and snippets.

@vinayak-mehta
Last active November 5, 2023 18:54
  • Star 18 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
A jupyter notebook showing how Camelot can be used to extract tables from PDFs scraped from the IDSP website.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bimmertoday
Copy link

How can I manually change a value (cell) of the table? Is there a way to access and overwrite ? Thank you

@zaynpatel
Copy link

How can I manually change a value (cell) of the table? Is there a way to access and overwrite ? Thank you

There are two ways to manually edit the value of a cell. The first is by the at keyword. df.at[index, 'column_name'] = new_value is the way to update a cell. The second way is to use iat keyword and this format is df.iat[row_index, column_index]. The iat method can be faster since there is no need to do a lookup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment