Home > other >  Why use pandas the isin function for data selection, data omission phenomenon?
Why use pandas the isin function for data selection, data omission phenomenon?

Time:09-26

Have two columns of data df1 [] and df2 [], storage is the name of the entity, as a Chinese, in the use of ~ the isin () function select df1 [] column is not df2 [] unit, later found that a unit of df2 should not appear in the df1, will remain in the df1 results trouble ask everyone, this is what reason, thank you

CodePudding user response:

1. The name may have invisible blank characters before and after the
2. There may be the Chinese characters, and the Angle of full half Angle problems
3. Make sure no coding issues
If the above three do not exist, suggest a can you show the specific examples of the question

CodePudding user response:

reference 1/f, ice wind of reply:
1. The name may have invisible blank characters before and after the
2. There may be the Chinese characters, and the Angle of full half Angle problems
3. Make sure no coding issues
If the above three do not exist, suggest a concrete example can reproduce the problem you

Thank you for your answer, my original data is excel spreadsheet import, such as there may be a newline dongdong, lead to the omission phenomenon

CodePudding user response:

This will, for example, don't say don't understand
  • Related