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...
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 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...
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...
What is the Python sorted function? An example of how to use it.
The Python sort function is very straight-forward. The easiest way to think about this is the various ways you can sort files on your...
Use Google Colab and Kaggle Data with bonus: fastai2
I was just running through this process and thought it might be helpful for others:
What to do in Kaggle:
Step 1. Go to your Kaggle...
How to return or print multiple variables in Python
We have discussed ways to handle variables and the best practices for naming variables in Python. We have noticed a number of searches on...
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 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....
What is an epoch in machine learning?
An epoch is one pass through an entire dataset. This can be in random order. You an also batch your epoch so that you...