atlanhq / camelot

Camelot: PDF Table Extraction for Humans
https://camelot-py.readthedocs.io
Other
3.61k stars 349 forks source link

Remove specific columns from Table object #372

Closed icontrerasn closed 4 years ago

icontrerasn commented 4 years ago

Couldn't do it myself and didn't find it in the docs, sorry if it is specified somewhere. Is it possible to remove specific columns from a Table object?

anakin87 commented 4 years ago

I don't know which is your purpose.

I think that it is easier to remove this column after you have exported the table in some format (CSV...)

vinayak-mehta commented 4 years ago

Each table object has a dataframe attr which you can access using table.df. It should be easy to delete columns from a dataframe without exporting the table, with a del table.df['column_name'].