cfpb / regtech-data-validator

Data validation tool for CFPB's RegTech systems
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Cast counts to int #210

Closed jcadam14 closed 4 months ago

jcadam14 commented 4 months ago

When getting the different counts (single_field, multi_field, etc) the sum() is returning an int64 (since the df.sum() function returns that type). This isn't serializable and causes clients to have to cast the counts to int if they want to stream the results. Cast to int here so downstream clients don't have to worry about that.