Home > other >  Excuse me, if you compare the two pandas dataframe and extract data
Excuse me, if you compare the two pandas dataframe and extract data

Time:02-03

Have two data blocks, want to compare the two data blocks in some close to the data, and the corresponding two other data in the data block is extracted to merge, pandas can't seem to compare two different columns of data, and use the merge function can only merge the same data, my own data in general is different, but wants to find out according to some characteristics, such as the time series is the most close to the two rows of data out, I now only think about doing it in a loop, don't know if pandas have better function and way, the great god, please give directions,
  • Related