HTTP/2 200
date: Sun, 27 Jul 2025 20:26:24 GMT
content-type: text/html
content-encoding: gzip
last-modified: Mon, 07 Jul 2025 17:39:22 GMT
cf-cache-status: DYNAMIC
vary: accept-encoding
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=WLNgcyNvclG09cRT%2BuTEqubUgNJeCvezBrL1XkWEYmZz0%2FjgTDZvCX2i8x0riksthZW83ORKQ3YrFurBVjOgwXRzosNxebNdjxwQVqdEI5E%2Fv1Yz7Dst8nvr4Y9sRTaeNmRP"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 965edf1d6965c197-BLR
server-timing: cfL4;desc="?proto=TCP&rtt=925&min_rtt=729&rtt_var=351&sent=6&recv=12&lost=0&retrans=0&sent_bytes=3385&recv_bytes=1026&delivery_rate=3785620&cwnd=252&unsent_bytes=0&cid=5fd9bb9dff7e7004&ts=551&x=0"
pandas.DataFrame.shape — pandas 2.3.1 documentation
Skip to main content
pandas.DataFrame.shape
-
property DataFrame.shape[source]
Return a tuple representing the dimensionality of the DataFrame.
See also
ndarray.shape
Tuple of array dimensions.
Examples
>>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})
>>> df.shape
(2, 2)
>>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4],
... 'col3': [5, 6]})
>>> df.shape
(2, 3)