HTTP/2 200
date: Mon, 28 Jul 2025 00:18:35 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=fEDPmwB7p1OYFF2zwt%2FLjAjezs%2Fzh8g6QcLhDPtPR4ez2qcl71FeBasv9S1Jo0ty4HUR7bdfvtSBzFeeTYGZPdFMt%2BJcWmiZAwiBVhMzp7bgNrTpVFzm1mvfHebNNUPeOPuw"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 966033374b538a2a-BLR
server-timing: cfL4;desc="?proto=TCP&rtt=739&min_rtt=687&rtt_var=183&sent=6&recv=12&lost=0&retrans=0&sent_bytes=3406&recv_bytes=1026&delivery_rate=3934782&cwnd=253&unsent_bytes=0&cid=cf5ed5f011aa6cac&ts=275&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)