Skip to content

Instantly share code, notes, and snippets.

View mathias3's full-sized avatar

mathias3

  • lisbon / warsaw
View GitHub Profile
@bsweger
bsweger / useful_pandas_snippets.md
Last active August 10, 2025 13:33
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)

@aparrish
aparrish / spacy_intro.ipynb
Last active March 14, 2025 21:43
NLP Concepts with spaCy. Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@godardt
godardt / amazon_forest_notebook.ipynb
Last active March 16, 2021 02:07
Planet: Understanding the Amazon deforestation from Space challenge
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakevdp
jakevdp / PIL-Animation.ipynb
Last active June 17, 2025 20:25
Quick example of an animation with ipywidgets and PIL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Podcasts for Data Science & Stuff

I asked the Twittersphere for data science (& tangentially-related) podcasts recommendations, and got a much bigger response than I expected with some really superb recommendations, so I created a gist with the suggestions I received. They're arranged alphabetically by name below, along with relevant Twitter accounts, links, and names of the hosts (if I could find them).

Shoot me a tweet @bennyjtang if you have more suggestions to add to this list!

Original Twitter thread

Adversarial Learning

@vonnenaut
vonnenaut / postgresql.md
Last active July 25, 2021 06:14
PostgreSQL

PostgreSQL

Setup/Admin

Initial Setup for Local Development

  • install psql and pgadmin
  • set postgres password to access maintenance db; password is initially undefined, preventing login via postgres user account
  sudo -u postgres psql postgres
@poop-person
poop-person / .POOP.md
Last active January 24, 2025 23:28
POOP: Peacefully Opposing Oppressive Puritanism

big-poop logo

POOP: Peacefully Opposing Oppressive Puritanism

POOP is a badge for any software project that is [under attack by modern day puritans][opalgate]. Use this badge to declare that your project is POOP: Peacefully Opposing Oppressive Puritanism.

@stefan-it
stefan-it / tpu_vm_cheatsheet.md
Last active December 5, 2024 23:33
TPU VM Cheatsheet

TPU VM Cheetsheat

This TPU VM cheatsheet uses and was tested with the following library versions:

Library Version
JAX 0.3.25
FLAX 0.6.4
Datasets 2.10.1
Transformers 4.27.1