
Situation
While preprocessing the RAGchain searchQA benchmark, null values strangely appeared whenever I used concat, even though the two dataframes were the same length and contained no null values. Why is that?
Conclusion
The two dataframes are the same length, but null values appear? If their indices do not align, null values can appear when using concat. Use reset_index~
- Be sure to remember to reset the index when necessary during dataframe preprocessing
- This is essential not only when preprocessing dataframes, but also for test code as the data size and codebase grow larger.
Reference https://ordo.tistory.com/51