1.2. Cherry Blossom Run. The data frame below contains information on runners in the 2017
Cherry Blossom Run, which is an annual road race that takes place in Washington, DC. Most
runners participate in a 10-mile run while a smaller fraction take part in a 5k run or walk. How
many observations and how many variables does this data frame have?
Bib
Pace
Event
6
1
2
3
4
5
22
Name Sex Age City / Country
Hiwot G F 21 Ethiopia
Buze D. F
Ethiopia
Gladys K F 31 Kenya
Mamitu D. F 33 Ethiopia
Karolina N. F 35 Poland
Time
Net Clock
3217 3217
3232 3232
3276 3276
3285 3285
3288 3288
16
4
20
321
323
327
328
328
10 Mile
10 Mile
10 Mile
10 Mile
10 Mile
+
19961
M
25163 Andres E,
33
Woodbridge, VA 5287
5334
5K
1700

Respuesta :

fichoh

The number of observation in the dataset is given by :

  • nrows(df) or df.shape[0]
  • ncols(df) or df.shape[1]

The dataframe is a way of representing data in table format in other to aid analysis using programming techniques such as python or R.

The number of observations which a dataset has refers to the number of rows in the data frame while the number of variables refers to the number of columns in the dataframe.

Using pandas library in python.

The number of rows in a dataframe can be obtained thus :

Assume the data has been loaded into a dataframe called df;

Using the shape method on the dataframe gives the row and column numbers ;

df.shape gives [number of rows, number of columns]

In R :

Number of rows = nrow(df)

Number of columns = ncols(df)

LEARN MORE : https://brainly.com/question/24568182