Skip to content

Instantly share code, notes, and snippets.

View vansky's full-sized avatar

Marten van Schijndel vansky

View GitHub Profile
@bsweger
bsweger / useful_pandas_snippets.md
Last active March 4, 2026 19:59
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@carlosmcevilly
carlosmcevilly / gist:2221249
Last active April 3, 2025 12:47
fix git commit with wrong email address in git config, before pushing
If:
- you add and commit with the wrong email address in git, and
- your remote has a hook set up to prevent you from pushing with the bad address
Then you need to amend the author of your commit before push can succeed:
1. fix your email address in git config:
$ git config user.name "Your Name"
@ivanoats
ivanoats / gist:1823034
Last active March 23, 2026 21:05 — forked from parndt/gist:958385
Setting up GIT Bash autocompletion. Use this only if you are using Bash instead of ZSH.