Skip to content

Instantly share code, notes, and snippets.

@vinayak-mehta
Last active June 27, 2024 15:36
Show Gist options
  • Save vinayak-mehta/e5949f7c2410a0e12f25d3682dc9e873 to your computer and use it in GitHub Desktop.
Save vinayak-mehta/e5949f7c2410a0e12f25d3682dc9e873 to your computer and use it in GitHub Desktop.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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