Use PyPDF2 - which PyPDF 2 or PyPDF 3 should be used?

Use PyPDF2 - which PyPDF 2 or PyPDF 3 should be used?

Introduction In previous article, we can extract text on a PDF file using PyPDF2. Use PyPDF2 - open PDF file or encrypted PDF file Use PyPDF2 - extract text data from PDF file I will introduce PyPDF3 in this article. PyPDF2 and PyPDF3 exist When I looked for various usage of PyPDF2, I found the follwing commnet in StackOverflow. The PyPDF2 has been stopped since 3 years ago?! And, new
Use PyPDF2 - extract text data from PDF file

Use PyPDF2 - extract text data from PDF file

Introduction In previous article titled ‘Use PyPDF2 - open PDF file or encrypted PDF file’, I introduced how to read PDF file with PdfFileReader. Extract text data from opened PDF file this time. Preparation Prepare a PDF file for working. Download Executive Order as before. It looks like below. There are three pages in all. Accessing to pages Accessing to arbitrary page The following code describes accessing the specified page
Use PyPDF2 - open PDF file or encrypted PDF file

Use PyPDF2 - open PDF file or encrypted PDF file

Motivation Since I want to work PDF file with Python on my work, I investigate what library can do that and how to use it. Preparation The runtime and module version are as below. python 3.6 PyPDF2 1.26.0 Install PyPDF2 To work PDF file with Python, PyPDF2 is often used. PyPDF2 can Extract text from PDF file Work existing PDF file and create new one Let’s install with pip command.
Use openpyxl -  Convert to DataFrame in Pandas

Use openpyxl - Convert to DataFrame in Pandas

Introduction Previously, I wrote several articles on working Excel files using openpyxl. Use openpyxl - open, save Excel files in Python Use openpyxl - create a new Worksheet, change sheet property in Python Use openpyxl - read and write Cell in Python In this article, I introduce how to convert openpyxl data to Pandas data format called DataFrame. Preparation Install modules First, install module with pip command. 1pip install openpyxl
Use openpyxl - read and write Cell in Python

Use openpyxl - read and write Cell in Python

Introduction In previous article, “Use openpyxl - create a new Worksheet, change sheet property in Python”, I introduced how to create a new Worksheet and change Worksheet properties. In this article I show how to read and write Cell in Excel with Python. Enter values to Cell Worksheet object has a position of Cell as property. That is dictionary type and consists of row and column number. Using them, access
Use openpyxl - create a new Worksheet, change sheet property in Python

Use openpyxl - create a new Worksheet, change sheet property in Python

Introduction In previous article, I showed how to create a new Excel file with openpyxl in Python. In this article, I create a new Worksheet, change sheet property Excel files in Python. Environment Runtime environment is as below. python 3.6 openpyxl 2.5.6 Create a new Worksheet Use create_sheet function to add new Worksheet. 1from openpyxl.workbook import Workbook 2 3wb = Workbook() 4 5ws1 = wb.create_sheet("Sheet_A") 6ws1.title = "Title_A" 7 8ws2
Use openpyxl - open, save Excel files in Python

Use openpyxl - open, save Excel files in Python

Introduction In this article I show how to work Excel with openpyxl. Environment Runtime environment is as below. python 3.6 openpyxl 2.5.6 Install Use openpyxl. The openpyxl official document says .. openpyxl is a Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm files. However, openpyxl can also work with Mac Excel 2016 on my Macbook Pro. Let’s install with pip command. 1pip install openpyxl Create new Excel file Import openpyxl At
Google Colaboratory is the best tool for machine learning engineer

Google Colaboratory is the best tool for machine learning engineer

For engineer who use Jupyter Notebook in often, web IDE named Colaboratory is the best tool. Try Colaboratory. What is Colaboratory? Colaboratory is a web IDE based on Jupyter notebook and hosted by Google. Not only editor, but also runtime is provided by Google, users don’t need to create the environment for development. Everyone can use Colaboratory without Google account, however, links the account, users earn lots of advantages.
Convert a string representing the date or epoch time to datetime and change timezone in Python

Convert a string representing the date or epoch time to datetime and change timezone in Python

Motivation Because I always google the way to convert a string representing the date to datetime and change timezone on the Internet, this is note to self article. There are three types to process date and time in Python. datetime, date, and time. I mainly use datetime in this article. Environment python 3.6 pytz jupyter notebook Convert epoch time to datetime Now convert numeric data types of eopch time to datetime.