7 Amazing Python One-Liners You Must Know

Speedup pandas, quick data profiling, data scraping, and many more

Pranjal Saxena
Towards Data Science
4 min readJun 17, 2021

--

Photo by Andrea Piacquadio from Pexels

1. Grab text from the image

pytesseract is a python library that can help us read the text from the image in a single line of python code. First thing is to read any image — that we can do using OpenCV.

--

--