Google News
logo
Pandas - Interview Questions
Explain the process of creating indexes in pandas?
Indexes can be created using Pandas Index function. Indexes support intersection and union.
 
import pandas as pd
index_A = pd.Index([1, 3, 5, 7, 9])
index_B = pd.Index([2, 3, 5, 7, 11])
Advertisement