Exemplo n.º 1
0
    def _set_columns(self, columns):
        """
        Set new columns.

        Parameters
        ----------
        columns : list-like
            New columns.
        """
        if self._modin_frame._has_unsupported_data:
            default_axis_setter(1)(self, columns)
        else:
            self._modin_frame = self._modin_frame._set_columns(columns)
Exemplo n.º 2
0
    def _set_index(self, index):
        """
        Set new index.

        Parameters
        ----------
        index : pandas.Index
            A new index.
        """
        if self._modin_frame._has_unsupported_data:
            default_axis_setter(0)(self, index)
        else:
            default_axis_setter(0)(self, index)
Exemplo n.º 3
0
 def _set_columns(self, columns):
     if self._modin_frame._has_unsupported_data:
         return default_axis_setter(1)(self, columns)
     self._modin_frame = self._modin_frame._set_columns(columns)
Exemplo n.º 4
0
 def _set_index(self, index):
     if self._modin_frame._has_unsupported_data:
         return default_axis_setter(0)(self, index)
     default_axis_setter(0)(self, index)