Skip to content

Instantly share code, notes, and snippets.

View codeslord's full-sized avatar
🤖
I'm not a robot, I just speak their language.

Rohith Raghunathan Nair codeslord

🤖
I'm not a robot, I just speak their language.
View GitHub Profile
@codeslord
codeslord / _webserver.md
Created August 20, 2018 11:53 — forked from jgravois/_webserver.md
a simple guide for getting a local web server set up

Do I have a web server running?


having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.

if you're not sure whether or not you have a web server running, no problem! its easy to confirm.

what happens when you visit http://localhost/?

@codeslord
codeslord / useful_pandas_snippets.py
Created August 16, 2018 11:28 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
# List unique values in a DataFrame column
# h/t @makmanalp for the updated syntax!
df['Column Name'].unique()
# Convert Series datatype to numeric (will error if column has non-numeric values)
# h/t @makmanalp
pd.to_numeric(df['Column Name'])
# Convert Series datatype to numeric, changing non-numeric values to NaN
# h/t @makmanalp for the updated syntax!