aito.utils.data_frame_handler
A utility to read, write, and convert a Pandas DataFrame in accordance to a Aito Table Schema
pandas is imported inside the two methods that actually call it, rather than at module scope. Building the aito CLI parser imports every subcommand module, so a top-level import here made aito -V and aito list load a dataframe library before doing anything – and fail outright wherever numpy’s compiled extensions could not load. aito/cli/parser.py already defers sql_connection for the same reason.
from __future__ import annotations makes the pd.DataFrame annotations throughout this module strings evaluated on demand, so the signatures still read as they did without needing pandas present to define them.
Classes
A handler that supports read, write, and convert a Pandas DataFrame in accordance to a Aito Table Schema |