hats.io.size_estimates
======================

.. py:module:: hats.io.size_estimates

.. autoapi-nested-parse::

   General utilities for estimating size of input and output.

   ..
       !! processed by numpydoc !!


Functions
---------

.. autoapisummary::

   hats.io.size_estimates.estimate_dir_size
   hats.io.size_estimates.get_mem_size_per_row


Module Contents
---------------

.. py:function:: estimate_dir_size(path: str | pathlib.Path | upath.UPath | None = None, *, divisor=1)

   
   Estimate the disk usage of a directory, and recursive contents.

   When divisor == 1, returns size in bytes.















   ..
       !! processed by numpydoc !!

.. py:function:: get_mem_size_per_row(data)

   
   Given a 2D array of data, return a list of memory sizes for each row in the chunk.

   Args:
       data (pd.DataFrame or pa.Table): the data chunk to measure

   Returns:
       list[int]: list of memory sizes for each row in the chunk















   ..
       !! processed by numpydoc !!

