Skip to content

Instantly share code, notes, and snippets.

View BEugeneSmith's full-sized avatar
😀

Brian Eugene Smith BEugeneSmith

😀
  • Bank of America
  • Chicago, IL
View GitHub Profile
@BEugeneSmith
BEugeneSmith / .block
Last active May 28, 2019 03:20
Permutation 1
license:
border: no
scrolling: no
height: 750
@BEugeneSmith
BEugeneSmith / GoogleScrape.ipynb
Last active July 10, 2017 06:38
How to Scrape Google Maps
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BEugeneSmith
BEugeneSmith / datamining1.ipynb
Last active January 14, 2016 04:06
how I mine data (part 1 out of ?)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BEugeneSmith
BEugeneSmith / lib_hours_open.ipynb
Last active January 7, 2016 02:08
munging times from open civic data to get # hours open *exhale*
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BEugeneSmith
BEugeneSmith / pipstrip.py
Last active January 7, 2016 02:11
Removing All the Pip Packages with a one liner
# First freeze your requirements to p.txt
/usr/bin/yes | sudo python -c "import os;t=open('p.txt','r');t=t.read().split('\n');[os.system('pip uninstall ' +i) for i in t]"
@BEugeneSmith
BEugeneSmith / warnings_be_gone.py
Created December 20, 2015 23:30
include this to turn off pandas warnings
pd.options.mode.chained_assignment = None
@BEugeneSmith
BEugeneSmith / go_to_binner.py
Last active December 20, 2015 22:01
because I get tired of rewriting binning solutions.
def data_binner(data,n_bins):
'''
given list data is split into n_bins
return bins with its valid values as dict
{bin:[valid_values],...}
'''
data = data
bins = {}
n_bins = n_bins