modin/pandas/series.py
def _create_or_update_from_compiler(self, new_query_compiler, inplace=False):
        """
        Return or update a Series with given `new_query_compiler`.

        Parameters
        ----------
        new_query_compiler : PandasQueryCompiler
            QueryCompiler to use to manage the data.
        inplace : bool, default: False
            Whether or not to perform update or creation inplace.

        Returns
        -------
        Series, DataFrame or None
            None if update was done, Series or DataFrame otherwise.
        """
        assert (
            isinstance(new_query_compiler, type(self._query_compiler))
            or type(new_query_compiler) in self._query_compiler.__class__.__bases__
        ), "Invalid Query Compiler object: {}".format(type(new_query_compiler))
        if not inplace and new_query_compiler.is_series_like():
            return Series(query_compiler=new_query_compiler)
        elif not inplace:
            # This can happen with things like `reset_index` where we can add columns.
            from .dataframe import DataFrame

            return DataFrame(query_compiler=new_query_compiler)
        else:
            self._update_inplace(new_query_compiler=new_query_compiler)

        Return or update a Series with given `new_query_compiler`.

        Parameters
        ----------
        new_query_compiler : PandasQueryCompiler
            QueryCompiler to use to manage the data.
        inplace : bool, default: False
            Whether or not to perform update or creation inplace.

        Returns
        -------
        Series, DataFrame or None
            None if update was done, Series or DataFrame otherwise.
        
Return or update a Series with given `new_query_compiler`.
Parameters

new_query_compiler : PandasQueryCompiler
QueryCompiler to use to manage the data.
inplace : bool, default: False
Whether or not to perform update or creation inplace.

Returns

Series, DataFrame or None
None if update was done, Series or DataFrame otherwise.
Return or update a Series with given ` new_query_compiler ` . Parameters new_query_compiler : PandasQueryCompiler QueryCompiler to use to manage the data . inplace : bool default : False Whether or not to perform update or creation inplace . Returns Series DataFrame or None None if update was done Series or DataFrame otherwise .
def _create_or_update_from_compiler(self, new_query_compiler, inplace=False):
        assert (
            isinstance(new_query_compiler, type(self._query_compiler))
            or type(new_query_compiler) in self._query_compiler.__class__.__bases__
        ), "Invalid Query Compiler object: {}".format(type(new_query_compiler))
        if not inplace and new_query_compiler.is_series_like():
            return Series(query_compiler=new_query_compiler)
        elif not inplace:
            from .dataframe import DataFrame
            return DataFrame(query_compiler=new_query_compiler)
        else:
            self._update_inplace(new_query_compiler=new_query_compiler)
def _create_or_update_from_compiler ( self , new_query_compiler , inplace = False ) : assert ( isinstance ( new_query_compiler , type ( self . _query_compiler ) ) or type ( new_query_compiler ) in self . _query_compiler . __class__ . __bases__ ) , "Invalid Query Compiler object: {}" . format ( type ( new_query_compiler ) ) if not inplace and new_query_compiler . is_series_like ( ) : return Series ( query_compiler = new_query_compiler ) elif not inplace : from . dataframe import DataFrame return DataFrame ( query_compiler = new_query_compiler ) else : self . _update_inplace ( new_query_compiler = new_query_compiler )
Return or update a Series with given `new_query_compiler`.
Return or update a Series with given ` new_query_compiler ` .
"""
        Return or update a Series with given `new_query_compiler`.

        Parameters
        ----------
        new_query_compiler : PandasQueryCompiler
            QueryCompiler to use to manage the data.
        inplace : bool, default: False
            Whether or not to perform update or creation inplace.

        Returns
        -------
        Series, DataFrame or None
            None if update was done, Series or DataFrame otherwise.
        """ # This can happen with things like `reset_index` where we can add columns.
self
new_query_compiler
inplace