Skip to content

Instantly share code, notes, and snippets.

Damian Mingle drmingle

Block or report user

Report or block drmingle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@drmingle
drmingle / Drop Columns and Rows in Pandas.ipynb
Created Dec 16, 2018
Learn how to drop columns and rows in a pandas dataframe
View Drop Columns and Rows in Pandas.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Detecting Outliers.md
title author date
Detecting Outliers
Damian Mingle
06/10/2018

Preliminaries

# Load libraries
View Convert Pandas Categorical Data For SciKit-Learn.md
title author date
Convert Pandas Categorical Data For SciKit-Learn
Damian Mingle
06/08/2018

Preliminaries

# Bring in libraries
View Create a Sparse Matrix.md
title author date
Create a Sparse Matrix
Damian Mingle
06/07/2018

Preliminaries

# Bring in libraries
View Transpose a Vector or a Matrix.md
title author date
Transpose A Vector Or A Matrix
Damian Mingle
05/08/2018

Preliminaries

import numpy as np
View Arithmetic Essentials.md
title author date
Arithmetic Essentials
Damian Mingle
05/05/2018

Assign values to variables

a = 11
View Applying Functions to List Items.md
title author date
Applying Functions To List Items
Damian Mingle
05/05/2018

Create a list of philosophers

philosopherNames = ['Aristotle', 'Plato', 'Socrates', 'Rene Descartes', 'Albert Camus']
View Apply Operations Over Items In A List.md
title author date
Apply Operations Over Items In A List
Damian Mingle
05/04/2018

The map() method

# Create a list of patients who have expired
View any_all_max_min_sum.md
title author date
any(), all(), max(), min(), sum()
Damian
05/04/2018

Generate Data

data = [340, 564, 250, 120, 230]
View Create All Combinations of a List.md
title author date
Create All Combinations of a List
Damian Mingle
05/04/2018

Preliminary

from itertools import combinations_with_replacement
You can’t perform that action at this time.