sainsc.LazyKDE.from_dataframe ============================= .. py:method:: sainsc.LazyKDE.from_dataframe(df, *, n_threads = None, **kwargs) :classmethod: Construct a LazyKDE from a DataFrame. The DataFrame must provide a 'gene', 'x', and 'y' column. If a 'count' column exists it will be used as counts else a count of 1 (single molecule) per row will be assumed. :param df: :type df: polars.DataFrame | pandas.DataFrame :param n_threads: Number of threads used for reading and processing file. If `None` this will default to the number of available CPUs. :type n_threads: int, optional :param kwargs: Other keyword arguments are passed to :py:meth:`sainsc.GridCounts.from_dataframe`.