Horje
python pandas shape Code Example
df.shape 0
count_row = df.shape[0]  # gives number of row count
count_col = df.shape[1]  # gives number of col count
python pandas shape
# The shape attribute returns a tuple (TODO appendix) where the first value is
#the number of rows and the second number is the number of columns
print(df.shape)
(1704, 6)
pandas shape
>>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})
>>> df.shape
(2, 2)




Python

Related
split a string by comma in python Code Example split a string by comma in python Code Example
how to split a string by space in python Code Example how to split a string by space in python Code Example
logarithmic scale fitting python Code Example logarithmic scale fitting python Code Example
best fit line python log log scale Code Example best fit line python log log scale Code Example
boto3 delete bucket object Code Example boto3 delete bucket object Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7