Skip to content

Tag: data-mining

Verify that a column name is a unique identifier

I have a dataset called df_authors and in that dataset I have a column called author. I have to verify that df_authors.author is a unique identifier. What I tried, len(df_authors) == len(df_authors[‘author’].unique()), and this returns True. My question is have I done this right. I found this line…