Skip to content

Instantly share code, notes, and snippets.

View sanzgiri's full-sized avatar

Ashutosh Sanzgiri sanzgiri

View GitHub Profile
@sanzgiri
sanzgiri / wordle.md
Created March 21, 2022 00:12 — forked from huytd/wordle.md
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@sanzgiri
sanzgiri / useful_pandas_snippets.py
Last active September 12, 2016 20:31 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
#Display all columns in a df.head() command
pd.set_option('display.max_columns', 999)
#List unique values in a DataFrame column
pd.unique(df.column_name.ravel())
#Convert Series datatype to numeric, getting rid of any non-numeric values
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True)
#Grab DataFrame rows where column has certain values
@sanzgiri
sanzgiri / 0_reuse_code.js
Last active August 29, 2015 14:22
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