Get the Size of a DataFrame
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```pythondata []
import pandas as pd

def createDataframe(student_data):
    # Define column names
    columns = ["student_id", "age"]
    
    # Create the DataFrame
    df = pd.DataFrame(student_data, columns=columns)
    
    return df

def getDataframeSize(df):
    return list(df.shape)

# Example input
player_data = [
    [846, "Mason", 21, "Forward", "RealMadrid"],
    [749, "Riley", 30, "Winger", "Barcelona"],
    [155, "Bob", 28, "Striker", "ManchesterUnited"],
    [583, "Isabella", 32, "Goalkeeper", "Liverpool"],
    [388, "Zachary", 24, "Midfielder", "BayernMunich"],
    [883, "Ava", 23, "Defender", "Chelsea"],
    [355, "Violet", 18, "Striker", "Juventus"],
    [247, "Thomas", 27, "Striker", "ParisSaint-Germain"],
    [761, "Jack", 33, "Midfielder", "ManchesterCity"],
    [642, "Charlie", 36, "Center-back", "Arsenal"]
]

# Create the DataFrame for players
columns = ["player_id", "name", "age", "position", "team"]
players_df = pd.DataFrame(player_data, columns=columns)

# Get and print the shape
print(getDataframeSize(players_df))

```
['Pandas']