fedorqui
0
Q:

df length

# Returns the number of rows in this DataFrame

df.count()
# 2
4
count_row = df.shape[0]  # gives number of row count
count_col = df.shape[1]  # gives number of col count
0
# Data frame size 
size = data.size # Number of rows times number of columns if DataFrame
  
# Data frame shape 
shape = data.shape 

# Data frame info
df.info()
  
# Data frame ndim 
df_ndim = data.ndim # 1 if series, 2 if data frame
  
# Series ndim 
series_ndim = data["myvar"].ndim 
0
total_rows = df.count
print total_rows +1
0

New to Communities?

Join the community