Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@isaacarroyov
Created September 18, 2020 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacarroyov/c29c85c22ed983b55c9991e186fd1a22 to your computer and use it in GitHub Desktop.
Save isaacarroyov/c29c85c22ed983b55c9991e186fd1a22 to your computer and use it in GitHub Desktop.
relevant code for the crime_analysis_mx2017 repository
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
#GENERAL PLOT SETTINGS
#style sheet
plt.style.use('seaborn-paper')
#background in plots
c_background = '#FFFFFF'
#color for the XYZ planes for the 3d plots
rgba_planes = (231/255, 231/255, 231/255)
df = pd.read_csv('/data/CrimesMX2017.csv', encoding='ISO-8859-1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment