“df.shape 0” Code-Antworten

df.shape 0

count_row = df.shape[0]  # gives number of row count
count_col = df.shape[1]  # gives number of col count
Obnoxious Osprey

Pandas -Form

>>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})
>>> df.shape
(2, 2)
Grumpy Guanaco

Ähnliche Antworten wie “df.shape 0”

Fragen ähnlich wie “df.shape 0”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen