Skip to content

Instantly share code, notes, and snippets.

View amdevine's full-sized avatar

Amanda Devine amdevine

  • Washington, D.C.
View GitHub Profile
@amdevine
amdevine / count-unique-excel.md
Last active October 19, 2021 18:20
Count unique, non-blank taxa in Excel

1. Make table

Make tabular data into a table (Insert → Table). Assign a short name to the table (Table Design → Table Name).

Table: taxa

A B C D E F
1 kingdom phylum class order family genus
2 Animalia Mollusca Gastropoda Neogastropoda Fasciolariidae Fasciolaria
@amdevine
amdevine / excel-lambda-let.md
Last active August 9, 2022 14:04
Excel: Custom functions with LAMBDA and LET
@amdevine
amdevine / rename-files.py
Created October 4, 2023 19:12
Bulk rename files in Python
# Adapted from Automate the Boring Stuff with Python
# https://automatetheboringstuff.com/2e/chapter10/
import shutil, os
from pathlib import Path
dir = Path.cwd() / 'data_directory'
for f in os.listdir(dir):