Skip to content

Instantly share code, notes, and snippets.

View pmlandwehr's full-sized avatar
💭
this is a silly feature for a software repository

Peter M. Landwehr pmlandwehr

💭
this is a silly feature for a software repository
View GitHub Profile
@pmlandwehr
pmlandwehr / infodump_to_others.py
Last active April 11, 2017 01:17 — forked from goingtomaine/infodump_to_others.py
Read the infodump into a dictionary of dataframes, an HDF5 file, or SQLite
def mefi_strptime(x):
from datetime import datetime
try:
return datetime.strptime(x, '%b %d %Y %I:%M:%S:%f%p')
except ValueError:
return datetime(1900, 1, 1, 0, 0, 0)
def int_with_filled_nans(x):
import numpy as np