ODM2 / ODM2PythonAPI

A set of Python functions that provides data read/write access to an ODM2 database by leveraging SQLAlchemy.
http://odm2.github.io/ODM2PythonAPI/
BSD 3-Clause "New" or "Revised" License
4 stars 13 forks source link

getResultValues dataframe column names are not CamelCase #127

Closed lsetiawan closed 6 years ago

lsetiawan commented 7 years ago

getResultValues dataframes seems to be returning column names that are all lowercase rather than CamelCase. This is inconsistent with the CamelCase keys that all the resulting model have when queried.

Example:

valueid resultid datavalue valuedatetime valuedatetimeutcoffset
1064 1064 1.2256 2015-11-17 13:55:12 -7
1065 1065 71.2000 2015-12-01 10:20:00 -7

This links to ODM2RESTAPI, which currently serializes this data with all lowercase keys. See odm2restapi issue 55

I think future change is needed to make the casing consistent with other query results.

emiliom commented 6 years ago

Has this issue been addressed?

lsetiawan commented 6 years ago

Not yet.

lsetiawan commented 6 years ago

This issue was addressed in #136.

emiliom commented 6 years ago

@lsetiawan So, this issue is closed and you've implemented the fix. As we've discussed, this will be a disruptive change. Ultimately, it's necessary. But I was thinking, what if we deploy it as a less painful, gradual transition? That is, implement it first as a behavior that is accessible by request via an optional argument, rather than as the default. The default behavior would remain as it was, to return a dataframe with all-lowercase column names.

What do you think? I'm reopening this issue to expose the discussion.

lsetiawan commented 6 years ago

PR #140 has been merged. This issue is resolved.