Pandas set index

broken image
broken image
broken image
broken image

verify_integrity – Check the new index for duplicates.inplace – Modifies the existing DataFrame object in place.append – Specify to append new Index to existing Index.drop – Deletes the column after setting an index.keys – Accepts singe column name as String, list of column names e.t.c.If you used inplace=True, this returns None and sets the Index on the existing DataFrame object. This method takes the below parameters and returns a DataFrame after setting an Index. t_index(keys, drop=True, append=False, inplace=False, verify_integrity=False)

broken image