M
M
malvin2018-09-18 14:31:25
Python
malvin, 2018-09-18 14:31:25

How to find the difference between two csv files by index using Pandas?

It is necessary to (1) subtract from the csv with id and links of another cs with id, (2) delete cells without links and (3) duplicates.
5ba0e14d5a090055265780.png5ba0e156225ad724536266.png
I'm trying this method, but it adds the data instead of subtracting. As I understand it, because the second file does not contain the sites field. How to be?

df1 = pd.concat([df,cite_id]).drop_duplicates(keep=False)

df - frame with two columns.
cite_id - frame with one id column.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question