Forum

Notifications
Clear all

Generating a Mapping between titles and index  

   RSS

0

The result given in the exercise is:

# Generate mapping between titles and index
indices = pd.Series(metadata.index,index=metadata['title']).drop_duplicates()
 
why does this generate the mapping? wouldn't this return the tuple as (index, 'title')? however printing indices out generated ('title', index)
Share:

Delete your account