简体   繁体   English

两个 excel 文件的 AZ 排序不同

[英]A-Z sorting is different between two excel files

I'm working on merging two datasets on python;我正在合并 python 上的两个数据集; however, I'm running into a sorting issue while preparing the excel files for processing.但是,我在准备 excel 文件进行处理时遇到了排序问题。

Excel 1 sorts AZ of project ID's as: Excel 1 将项目 ID 的 AZ 排序为:
1 1
2.a 2.a
2.b 2.b
3 3

However, excel 2 sorts AZ as:但是,excel 2 将 AZ 排序为:
1 1
3 3
2.a 2.a
2.b 2.b

How do I make sure they both sort as excel 1?如何确保它们都排序为 excel 1?

I've changed format of columns from General to number for both and it's still similar outcome.我已将两者的列格式从 General 更改为 number ,但结果仍然相似。

IMHO, sorting is unnecessary.恕我直言,排序是不必要的。 u want:你想:

merging two datasets on python合并 python 上的两个数据集

Thus, just import/merge both data 1st.. then sort in python.. just from looking in the output file you can see if some of the row label IS actually different.因此,只需导入/合并两个数据 1st .. 然后在 python 中排序 .. 只需查看 output 文件,您就可以看到 label 的某些行是否实际上不同。 Eg: "2.a" vs "2.a "例如:“2.a”与“2.a”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM