Back to Modin

PandasQueryCompiler

docs/flow/modin/core/storage_formats/pandas/query_compiler.rst

0.37.11.4 KB
Original Source

PandasQueryCompiler """"""""""""""""""" :py:class:~modin.core.storage_formats.pandas.query_compiler.PandasQueryCompiler is responsible for compiling a set of known predefined functions and pairing those with dataframe algebra operators in the :doc:PandasDataframe </flow/modin/core/dataframe/pandas/dataframe>, specifically for dataframes backed by pandas.DataFrame objects.

Each :py:class:~modin.core.storage_formats.pandas.query_compiler.PandasQueryCompiler contains an instance of :py:class:~modin.core.dataframe.pandas.dataframe.dataframe.PandasDataframe which it queries to get the result.

:py:class:~modin.core.storage_formats.pandas.query_compiler.PandasQueryCompiler supports methods built by the :doc:algebra module </flow/modin/core/dataframe/algebra>. If you want to add an implementation for a query compiler method, visit the algebra module documentation to see whether the new operation fits one of the existing function templates and can be easily implemented with them.

Public API '''''''''' :py:class:~modin.core.storage_formats.pandas.query_compiler.PandasQueryCompiler implements common query compilers API defined by the :py:class:~modin.core.storage_formats.base.query_compiler.BaseQueryCompiler. Some functionalities are inherited from the base class, in the following section only overridden methods are presented.

.. autoclass:: modin.core.storage_formats.pandas.query_compiler.PandasQueryCompiler :members: