How to keep index when using pandas merge
I would like to merge two DataFrames, and keep the index from the first frame as the index on the merged dataset. However, when I do the merge, the resulting DataFrame has integer index. How can I specify that I want to keep the index from the left data frame? In [4]: a = pd.DataFrame({‘col1’: … Read more