as_table_columns() returns a list of columns out of order for python 3.5 and 2.7

Description

I discovered this while cleaning up the tests. I enabled some unit tests that seems to miss assert_equals statement: https://github.com/Sage-Bionetworks/synapsePythonClient/pull/565

The test is broken for Python 2.7 and 3.5 across multiple platforms but succeed on Python 3.6.

Environment

None

Activity

Show:
Kimyen Truong
June 29, 2018, 11:04 PM

Running a test on Python 2.7 and 3.6 to see the different behaviors:
Python 2.7

Python 3.6

Kimyen Truong
June 29, 2018, 11:13 PM

Restricting the Pandas version did not fix the bug:

The columns to be tested are still in alphabetically order:

Kimyen Truong
June 30, 2018, 12:38 AM

It's not Pandas, it's dict:

Kimyen Truong
June 30, 2018, 1:02 AM

But we can create a Pandas DataFrame with ordered columns:

Kimyen Truong
June 30, 2018, 1:20 AM

Assignee

Kimyen Truong

Reporter

Kimyen Truong

Labels

None

Validator

Ziming Dong

Development Area

None

Release Version History

None

Fix versions

Priority

Major
Configure