.align()
sorts indexes when they differ, does not sort otherwise
#22466
Labels
.align()
sorts indexes when they differ, does not sort otherwise
#22466
Code Sample, a copy-pastable example if possible
Problem description
Inconsistent behavior, makes it impossible to use structures of the form:
as the order gets switched without user's consent.
Expected Output
indexes are kept in the original order
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]INSTALLED VERSIONS
commit: None
python: 3.5.2.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.1
pytest: 2.9.2
pip: 9.0.1
setuptools: 23.0.0
Cython: 0.24
numpy: 1.11.3
scipy: 0.18.1
pyarrow: None
xarray: 0.9.3
IPython: 4.2.0
sphinx: 1.3.1
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: 1.2.1
tables: 3.2.2
numexpr: 2.6.1
feather: None
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.2
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
sqlalchemy: 1.1.13
pymysql: 0.7.9.None
psycopg2: None
jinja2: 2.8
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: