Skip to content

Instantly share code, notes, and snippets.

View awgeezrick's full-sized avatar

Mark Jones awgeezrick

View GitHub Profile
@knu2xs
knu2xs / hashing.py
Last active October 6, 2025 13:17
Add a MD5 hash column to a Pandas data frame for change analysis.
from hashlib import md5
import pandas as pd
from typing import Optional, Iterable
def get_md5_from_series(input_iterable: Iterable) -> str:
"""
Create a MD5 hash from an Iterable, typically a row from a Pandas ``DataFrame``, but can be any
Iterable object instance such as a list, tuple or Pandas ``Series``.
Args: