Python Modules

Modules is one of the best feature of Python. Except some core modules, you can install what you need and keep your Python setup smooth.

Python Regex for Case-Insensitive Text Matching without re.compile()

Python’s ‘re’ module, short for regular expressions, provides a powerful toolset for pattern recognition in text. There is a module called “re” which stands for regular expression in Python which contains various in-built functions for performing special operations on text and string objects. Unlike standard string objects, regular expressions account for patterns of various characters, …

Python Regex for Case-Insensitive Text Matching without re.compile() Read More »

Working with Stata Files in Python: Reading Variable Labels with Pandas

In this article, we make ourselves familiar with one more file type the Stata files in Python which come with several extensions(.dta,.ado,.do,.smcl, etc explained below). We also look at different methods to return a dictionary associating each variable name with the corresponding label. Understanding Stata Files Academic and research communities widely use Stata software a …

Working with Stata Files in Python: Reading Variable Labels with Pandas Read More »

How to read a CSV from a URL using Pandas?

The most useful, easy to understand, and efficient open-source library tool for handling data, cleaning the data, modification, and analysis in Python is Pandas. As a result, Pandas is quite useful when working with large datasets. Pandas’ built-in function facilitates reading datasets in a variety of formats. Python users can read CSV files (Comma Separated Values files) in …

How to read a CSV from a URL using Pandas? Read More »