Can someone elaborate on the difference between using .loc
and not in the examples below? What is the benefit of using:
rslt_df = dataframe[dataframe['Percentage'] > 70]
, as opposed torslt_df = dataframe.**loc**[dataframe['Percentage'] > 70]
Can someone elaborate on the difference between using .loc
and not in the examples below? What is the benefit of using:
rslt_df = dataframe[dataframe['Percentage'] > 70]
, as opposed torslt_df = dataframe.**loc**[dataframe['Percentage'] > 70]