Get the number of elements in the DataFrame.

        Returns:
            The number of elements in the DataFrame.

def size(self):
        """Get the number of elements in the DataFrame.

        Returns:
            The number of elements in the DataFrame.
        """
        return len(self._query_compiler.index) * len(self._query_compiler.columns)