Skip to content

Instantly share code, notes, and snippets.

View stevenvo's full-sized avatar

Steven Vo stevenvo

  • GeoComply
  • Bay Area
View GitHub Profile
@stevenvo
stevenvo / useful_pandas_snippets.py
Last active February 13, 2020 18:45 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
###### FORCE DATA FORMAT IN PANDAS ######
pd.options.display.float_format = '{:,.2f}'.format
# NOTES:
# 1. DO NOT update row in df.iterrows() -> https://stackoverflow.com/questions/25478528/updating-value-in-iterrow-for-pandas
# Use df.loc[idx, '<col>'] = <value>
###### REGEX on DataFrame ######
@stevenvo
stevenvo / 0_reuse_code.js
Last active August 25, 2015 22:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console