Using .loc for data selection

Report a typo

Suppose you want to select the data with .loc like this: df.loc['2023-01-01':'2023-01-10'] .

The date column is of the pandas datetime type. What intermediary action could you performed on the DataFrame for the .loc to work?

Select one option from the list
___

Create a free account to access the full topic