pandas.Index.factorize ====================== .. currentmodule:: pandas .. automethod:: Index.factorize