How to: A simple Python Function example
Functions in Python can be simple or extraordinarily complex. This will teach you how to write a simple Python Function example. From there you...
How to fillna in pandas in Python
We are going to show you how to fillna using pandas in Python. No dataset is going to come perfect and ready to go....
How to drop columns in a pandas dataframe
Pandas is a great tool for working on any machine learning or data science project. It's a fundamental part of data wrangling. In this...
Machine Learning: Creating vectors, matrix and arrays
To get started in machine learning there are some basics that you need to know and understand before you can ever just start coding...
Analyzing NFL Concussion data for Kaggle Data Science Competition
Recently, I entered the NFL Concussion on punt returns contest for data scientists. It wasn't the normal machine learning problem. In fact, it is...
Feature Engineering: LabelEncoder sklearn example
A big part of machine learning is data cleanup and feature engineering. A good tool in your data science toolkit will be label encoding....
How to drop rows in a pandas dataframe
A previous tutorial showed you how to drop columns in a pandas dataframe. Now we will look at how to drop rows in a...
How to make the first row in your spreadsheet or dataframe the header in...
If you have imported a CSV file into your notebook and use Pandas to view the dataframe you might find that the header of...
How to add a column to pandas dataframe
Pandas allow for many methods for adding and dropping content. We have covered how to drop a column and how to drop a row...
Best practices for naming variables in Python
When naming variables in Python there are some best practices that we will discuss. If you don't follow the best practices you'll get errors...