Code Monkey home page Code Monkey logo

Comments (5)

chezou avatar chezou commented on June 30, 2024

Thanks for reporting. I saw similar stuff when the vertical line was too close to the character.

One thing I come up with is to use the columns option. Can you try it? See details in: https://tabula-py.readthedocs.io/en/latest/tabula.html#tabula.io.read_pdf
Without having the PDF, this is what I can suggest.

from tabula-py.

arenasc avatar arenasc commented on June 30, 2024

hi @chezou,
Thanks for the recommendation! I added "columns=[10.1, 20.2, 30.3]" to the code and the column is no long cut off 👍 Am I

from tabula-py.

arenasc avatar arenasc commented on June 30, 2024

Ugh, pressed the wrong button sorry @chezou. My follow-up question is if my syntax is correct. Using "columns=[10.1, 20.2, 30.3]" worked, but for future PDFs, I want to fully understand how to use the option. I know it's supposed to be: X coordinates of column boundaries. Can you please explain or suggest a better explanation from the documentation? Thanks!

from tabula-py.

chezou avatar chezou commented on June 30, 2024

The description comes from tabula-java's one. I'm not sure what your point is.
https://github.com/tabulapdf/tabula-java#commandline-usage-examples

Example code can be found in this article by @tdpetrou https://www.dunderdata.com/blog/read-trapped-tables-within-pdfs-as-pandas-dataframes

If you think you want to set the same columns option between different PDFs, that is not possible. You need to set the columns option per table.

from tabula-py.

arenasc avatar arenasc commented on June 30, 2024

Hi,
Thanks again for the documentation and the article. This clears up a lot for me. Thanks again! :)

from tabula-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.