Selecting individual rows

To select a specific row within the Pandas dataframe derived from the CARTO account dataset, a conditional statement can be passed to the object in brackets. Here, the NBA arenas dataset's team column is queried by passing the name of an NBA team as a parameter:

df[df.team=='Toronto Raptors']
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset