Use statsmodels to Perform Linear Regression in Python

Often times, linear regression is associated with machine learning – a hot topic that receives a lot of attention in recent years. And so, in this tutorial, I’ll show you how to perform a linear regression in Python using statsmodels. I’ll use a simple example about the stock market to demonstrate this concept. Here are the topics to …

Get Previous, Current and Next-Day System Dates in Python

In this short post, I’ll show you how to get the previous, current and next-day system dates in Python. I’ll also explain how to modify the Python code to get your desired date format. To start, let’s look at the first case of getting the non-formatted system dates (including the timestamps) in Python. Non-Formatted System Dates …