Skip to content

Instantly share code, notes, and snippets.

View tbyers-risklens's full-sized avatar

Tyler Byers tbyers-risklens

View GitHub Profile
@tbyers-risklens
tbyers-risklens / dbir_patterns.py
Created January 8, 2019 21:49
DBIR Patterns for verispy package
import pandas as pd
def get_pattern(df):
""" Generates the DBIR "patterns," with liberal inspiration from the getpatternlist.R:
https://gist.github.com/jayjacobs/a145cb87551f551fc719
Parameters
----------
df: pd DataFrame with most VERIS encodings already built (from verispy package).