

Discover more from Daily Dose of Data Science
High-quality insights on Data Science and Python, along with best practices — shared daily.
Get a free 550+ page data science PDF guide and 450+ practice questions notebook.
Over 49,000 subscribers
Continue reading
Lesser-Known Feature of the Merge Method in Pandas
While merging DataFrames in Pandas, keeping track of the source of each row in the output can be extremely useful.
You can do this using the 𝐢𝐧𝐝𝐢𝐜𝐚𝐭𝐨𝐫 argument of the 𝐦𝐞𝐫𝐠𝐞() method. As a result, it augments an additional column in the merged output, which tells the source of each row.
Share this post on LinkedIn: Post Link.
The code snippets for the posts I have shared here are available on GitHub. Check out this repository: GitHub.
I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn.