1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Python for R Users

Connected

अभ्यास

Selecting rows

You can subset rows either using the row name (.loc accessor) or the row index (.iloc accessor).

To perform conditional subsetting, you pass .loc a boolean expression, and all the rows that match the boolean expression will be returned. When using multiple conditions, you can use the & or | operators for 'and' and 'or', respectively. Remember, you need to surround each conditional statement inside parentheses.

निर्देश 1/3

undefined XP
    1
    2
    3

Print the first row of the tips DataFrame using iloc.