Skip to content

Instantly share code, notes, and snippets.

View beitom's full-sized avatar

Tom Ginsberg beitom

View GitHub Profile
import networkx as nx
from sklearn.neighbors import NearestNeighbors
import numpy as np
def nearest_neighbor_graph(
coords: np.ndarray,
k = None,
r = None,
):
"""
@beitom
beitom / export_timesheets.py
Last active May 13, 2025 21:14
Export timesheets to csv
from glob import glob
import json
import pandas as pd
import os
import argparse
from datetime import datetime
def load_single_timesheet(timesheet_path, root_dir):
"""
Loads a single timesheet.json file and its associated notes.