How to Use the Sklearn Logistic Regression Function

An image of a logistic regression model made with Scikit-learn, also showing a piece of Scikit-learn code.

In this tutorial, I’ll show you how to use the Sklearn Logistic Regression function to create logistic regression models in Python. I’ll quickly review what logistic regression is, explain the syntax of Sklearn LogisticRegression, and I’ll show you a step-by-step example of how to use the technique. If you need something specific, just click on … Read more

Data Project: Get and Analyze ‘Quality of Life’ Data for World Cities

An image of Lisbon, Portugal with the heading "Data Project: Finding Great Cities"

I have a confession. I’m an American, and I was raised an American. But, I’ve been semi-nomadic for almost 10 years. A “digital nomad.” That is, I’ve lived in many countries around the world since about 2014 (although, I also lived a substantial amount of time in Austin, Texas during the last 10 years). I’m … Read more

Why AI Coding Systems Will Cause an Explosion of Data

An image of an explosion of digital data.

For years, people have been talking about the era of “big data.” The data deluge. As early as 2010, The Economist wrote about how “quantity of information in the world is soaring.” Now 13 years later, businesses have still struggled to keep up with the volume of data. This has been great for the data … Read more

Why Python is the Best Data Science Language (in 2023)

An image suggesting that Python is the best data science language.

The first question that aspiring data scientists ask me is “what is the best data science language … which should I learn.” And almost always, this is framed as a decision between R and Python. If you’re wondering which language you should learn first … And especially if you’re interested in artificial intelligence. Then keep … Read more

Numpy Transpose, Explained

An image that shows how Numpy transpose restructures the axes of a Numpy array.

In this tutorial, I’ll show you how to use the Numpy transpose function. I’ll explain what the function does, how the syntax works, and I’ll show you step-by-step examples of how to use it. If you need something specific, you can just click on any of the following links. Table of Contents: Introduction Syntax Examples … Read more