Ashutosh Yadav

Extracting Filename without Extension from a File Path in Python

When working with files in Python, it’s often necessary to manipulate the file names and extensions to perform various tasks such as renaming or processing files. However, extracting the filename without the extension from a given path can be tricky. Fortunately, python provides a straightforward way to achieve this using the os.path module and also […]

Extracting Filename without Extension from a File Path in Python 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 Determine Outliers in Python

In this article, we learn about different methods used to detect an outlier in Python. Z-score method, Interquartile Range (IQR) method, and Tukey’s fences method will be implemented. Python provides modules like numpy and scipy which assist us in detecting the outlier of a given data set. Understanding Outliers Outlier is python is any value

How to Determine Outliers in Python Read More »