digital-cognition-co-in / DigitalCognition

DigitalCognition - Main repo - Core Product
2 stars 2 forks source link

Deduplicate rows with identical values #14

Open RohitDhankar opened 4 years ago

RohitDhankar commented 4 years ago

Write a Python method to Deduplicate rows with identical values in a Pandas DF . All values in each cell of SOURCE ROW should be exactly same as - all values in each cell of TARGET ROW .

Upload Python code file here .

As Input parameter to this method provide - 1/ Index Value - SOURCE ROW 2/ Index Value - TARGET ROW

Text - Rohit on Whatssap - 9871050873, in case of any issues / challenges.

RohitDhankar commented 4 years ago

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop_duplicates.html

abhijeetmote commented 4 years ago

Hi @RohitDhankar Kindly review the attached code and suggest if anything needs to be change. and let me know on which branch and in which directory, I should maintain this, so I can raise the pull request Thanks, Abhijeet remove_duplicates.txt

RohitDhankar commented 4 years ago

Write a Python method to Deduplicate rows with identical values in a Pandas DF . All values in each cell of SOURCE ROW should be exactly same as - all values in each cell of TARGET ROW .

Upload Python code file here .

As Input parameter to this method provide - 1/ Index Value - SOURCE ROW 2/ Index Value - TARGET ROW

Text - Rohit on Whatssap - 9871050873, in case of any issues / challenges.

Hi @abhijeetmote , am sorry as discussed - error at my end while having written that we need to pass in index of rows as Param , thanks for correcting me