1

Can someone elaborate on the difference between using .loc and not in the examples below? What is the benefit of using:

  1. rslt_df = dataframe[dataframe['Percentage'] > 70], as opposed to
  2. rslt_df = dataframe.**loc**[dataframe['Percentage'] > 70]
martineau
  • 119,623
  • 25
  • 170
  • 301
maroulator
  • 129
  • 8

0 Answers0