TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Image by Free-Photos from Pixabay

Member-only story

6 Cool Python Libraries That I Came Across Recently

Awesome Python libraries for Machine Learning

Dhilip Subramanian
TDS Archive
Published in
7 min readJul 12, 2021

--

Python is an integral part of machine learning and libraries make our life simpler. Recently, I came across 6 awesome libraries while working on my ML projects. They helped me save a lot of time and I am going to discuss about them in this blog.

1. clean-text

A truly incredible library, clean-text should be your go-to when you need to handle scraping or social media data. The coolest thing about it is that it doesn’t require any long fancy code or regular expressions to clean our data. Let’s see some examples:

Installation

!pip install cleantext

Example

#Importing the clean text library
from cleantext import clean
# Sample texttext = """ Zürich, largest city of Switzerland and capital of the canton of 633Zürich. Located in an Al\u017eupine. (https://google.com). Currency is not ₹"""# Cleaning the "text" with clean textclean(text,
fix_unicode=True,
to_ascii=True,
lower=True,
no_urls=True,
no_numbers=True,
no_digits=True,
no_currency_symbols=True…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Dhilip Subramanian
Dhilip Subramanian

Written by Dhilip Subramanian

Data Consultant | Helping SMB's to Build Analytics Platforms

Responses (10)