Skip to content

Instantly share code, notes, and snippets.

@canabadyweb
canabadyweb / familytree.py
Created May 22, 2021 04:15 — forked from AhsenParwez/familytree.py
Creating family tree using python and graphviz
from graphviz import Digraph
import pandas as pd
ancestry = pd.read_csv('sample_ancestry.csv')
earl_ans = ancestry.loc[ancestry['Relation'] == 'Earliest Ancestor', 'Person 1'].iloc[0]
ancestry['recorded_ind'] = 0 # Flag for indicating individuals whose data has been recorded in the tree
incomp = [earl_ans]
comp = []
@canabadyweb
canabadyweb / vim_cheatsheet.md
Created February 8, 2021 12:53 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close