from typing import Any


def has_column(table: Any, name: str) -> bool:
    """
    Helper function for determining if a table has a column, works with h5py, pytables, and pandas
    """
    if hasattr(table, "cols"):
        return hasattr(table.cols, name)
    return name in table