The CSS method is probably the better choice in most scenarios. And before extracting data from the dataframe, it would be a good practice to assign a column with unique values as the index of the dataframe. using the