great-tables
great-tables copied to clipboard
numpy: replace convenience functions in `_utils_nanoplots.py`
in great_tables._utils_nanoplots we have a few cases of numpy being used to generate sequences, etc.. (e.g. np.linspace). Let's replace these with pure python versions.
I don't think speed is too critical, as I suspect there's quite a bit of room for optimization in nanoplots, and the size of data for Great Tables is usually not bananas.
np.random.uniform()np.linspace()np.integerin isinstance check. CreateNpIntegerclass in_tbl_data.pyusing databackend (similar toPlSeries, etc..). This will enable it to perform the check w/o importing numpy.