Isaac Emmanuel
23 Sept 2023Python

Get The Size Of A Dataframe

Python solution for Get The Size Of A Dataframe.

The Get The Size Of A Dataframe solution is below.

Solution files

Python•get-the-size-of-a-dataframe/solution.py
import pandas as pd
from typing import List

def getDataframeSize(players: pd.DataFrame) -> List[int]:
    rows, columns = players.shape
    return [rows, columns]