Table Shape
Return a list [rows, columns] with the number of rows and the number of columns of df.
Example 1
df {"a":[1,2,3],"b":[4,5,6]}
returns [3,2]
3 rows and 2 columns.
Constraints
- At least one row and one column
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Top ScoresBeginner
- Upper QuartileBeginner
- Wanted StatusesBeginner
- Add Total ColumnEasy
- All Emails OnceEasy
- Biggest Single NumberEasy
- Cheapest ItemEasy
- Classes With Many StudentsEasy