Exemple #1
0
 def transpose(self, *args, **kwargs):
     """
     Returns a DataFrame with the rows/columns switched.
     """
     nv.validate_transpose(args, kwargs)
     return self._constructor(
         self.values.T, index=self.columns, columns=self.index,
         default_fill_value=self._default_fill_value,
         default_kind=self._default_kind).__finalize__(self)
 def transpose(self, *args, **kwargs):
     """
     Returns a DataFrame with the rows/columns switched.
     """
     nv.validate_transpose(args, kwargs)
     return self._constructor(
         self.values.T, index=self.columns, columns=self.index,
         default_fill_value=self._default_fill_value,
         default_kind=self._default_kind).__finalize__(self)
Exemple #3
0
    def transpose(self, *args, **kwargs):
        """
        Return the transpose, which is by definition self.

        Returns
        -------
        %(klass)s
        """
        nv.validate_transpose(args, kwargs)
        return self
Exemple #4
0
    def transpose(self, *args, **kwargs):
        """
        Return the transpose, which is by definition self.

        Returns
        -------
        %(klass)s
        """
        nv.validate_transpose(args, kwargs)
        return self
Exemple #5
0
 def transpose(self, *args, **kwargs):
     """ return the transpose, which is by definition self """
     nv.validate_transpose(args, kwargs)
     return self
Exemple #6
0
 def transpose(self, *args, **kwargs):
     """ return the transpose, which is by definition self """
     nv.validate_transpose(args, kwargs)
     return self
Exemple #7
0
 def transpose(self, *args, **kwargs):
     # type: (*int, **int) -> IndexOpsMixin
     """ return the transpose, which is by definition self """
     nv.validate_transpose(args, kwargs)
     return self