Task: Ensure Pandas Label Selection Always Returns DataFrame
Task: Ensure Pandas Label Selection Always Returns DataFrame: a task in Terminal-Lego-15k (Harbor dataset). In Pandas, when selecting rows by label using .loc , the return type varies depending on how many rows match: - If multiple rows match the label, a DataFrame is returned - If only one row…
The task
In Pandas, when selecting rows by label using `.loc[]`, the return type varies depending on how many rows match: - If multiple rows match the label, a **DataFrame** is returned - If only one row matches the label, a **Series** is returned
Part of PrimeIntellect/Terminal-Lego-15k.