There was an error while loading. Please reload this page.
1 parent deafcf7 commit 9001cb2Copy full SHA for 9001cb2
pandas/core/frame.py
@@ -1021,6 +1021,10 @@ def shape(self) -> tuple[int, int]:
1021
"""
1022
Return a tuple representing the dimensionality of the DataFrame.
1023
1024
+ Unlike the `len()` method, which only returns the number of rows, `shape`
1025
+ provides both row and column counts, making it a more informative method for
1026
+ understanding dataset size.
1027
+
1028
See Also
1029
--------
1030
numpy.ndarray.shape : Tuple of array dimensions.
0 commit comments