23 Sept 2023PythonUnknown

Get The Size Of A Dataframe

notes and solution files for get the size of a dataframe.

this entry collects the solution files i have for get the size of a dataframe. i may expand it with a fuller write-up later, but the implementation files are already here.

available solution files

  • Python get-the-size-of-a-dataframe/solution.py

Solution files

Pythonget-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]