2880. Select Data

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 2880

import pandas as pd


def selectData(students: pd.DataFrame) -> pd.DataFrame:
    return students[students['student_id'] == 101][['name', 'age']]