I am trying to compare two excel file that are different size, one has 5701 row and the other has 5904 row. The columns are Price and Project Description. I am trying to compare by text to see what the project difference are.
import pandas as pd
import numpy as np
df = pd.read_csv('C:/Users/Text/Downloads/D1.csv')
df2 = pd.read_csv('C:/Users/Text/Downloads/D2.csv')
df['text_match'] = np.where(df['Project ID'] == df2['Project ID'], 'True', 'False')
print(df.loc[(df['text_match'] == 'False')])
I get the following error when I try to run the code:
raise ValueError("Can only compare identically-labeled Series objects")
ValueError: Can only compare identically-labeled Series objects