Set FBA columns and column dtypes#362
Conversation
catherinebirney
commented
Aug 24, 2023
- FBA generation only returns columns identified as "required: True" in schema.py, can also include optional columns, such as "Suppressed". Previously, all columns in schema.py where added to FBA.
- All empty cells are now represented by np.nan (or 0) rather than a mix of np.nan and None
|
were you finding issues in some cases? I'm not sure the best way to test this - looks reasonable to me. Suppressed still shows up when needed? |
|
Suppressed does show up when we want it - so Suppressed is included in the EIA_MECS_Energy FBAs. But now a column of np.nan is not added for no reason. There wasn't a real issue with the dtypes, but the FBAs we were generating had a mix of None and np.nan columns, so I changed it for consistency. |
|
ok, i still get confused since there is also the new |
|
Yes, we do need to consolidate, but right now FBAs are still generated with our original method so that is the code I tweaked |
|
@catherinebirney this seems to have caused some issues with |
|
fixed with 1c4a1e2 |