[python] translate .pdf to CSV

YOKK m.
1 min readJan 17, 2020

--

credits: pdf file from DHL Thailand (price list)

to manipulate pdf file, in python the easiest way to do is read and translate it into to dataframe format. In this blog I will show you the most simple way to do so.

  • packages that used in this matter is as follow
import all packages
  • def readpdf — Read file
  • def pcol — this function is called to ask the user to confirm if there is any column is unnecessary to the final output, if so then remove column

Done!

.pdf can be found i here

--

--

YOKK m.
YOKK m.

Written by YOKK m.

a data scientist — Master of Data science is the degree, master of none is also me

No responses yet