Skip to content

Conversation

@nathanjmcdougall
Copy link
Contributor

A possible implementation of #1286

Signed-off-by: Nathan McDougall <[email protected]>
@nathanjmcdougall nathanjmcdougall force-pushed the nathanjmcdougall-patch-1 branch from e4ead23 to efc53b6 Compare August 5, 2023 11:00
Signed-off-by: Nathan McDougall <[email protected]>
Signed-off-by: Nathan McDougall <[email protected]>
@nathanjmcdougall nathanjmcdougall changed the title Make DataFrameModel iterable over the schema fields Make DataFrameModel iterable over the schema field names Aug 5, 2023
use class instead of hard-coded strings

Signed-off-by: Nathan McDougall <[email protected]>
@nathanjmcdougall nathanjmcdougall marked this pull request as draft August 5, 2023 12:56
Signed-off-by: Nathan McDougall <[email protected]>
@nathanjmcdougall
Copy link
Contributor Author

The issue I'm facing with this is that .to_schema gives fields in the same order as defined within a class, but groups of fields from different classes are in reverse order from the class heirarchy (hence the test I've added is failing).

I could create a workaround, but I wonder whether it would be better just to change .to_schema to give fields in the order corresponding to the order of inheritance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant