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 »