Skip to content

Commit b069e87

Browse files
Merge pull request #4450 from fedspendingtransparency/fix/dev-12772-fix-award-financial-groupby-cols
Fix/dev 12772 fix award financial groupby cols
2 parents ddf6c19 + 752a200 commit b069e87

File tree

1 file changed

+72
-4
lines changed
  • usaspending_api/download/management/commands/delta_downloads

1 file changed

+72
-4
lines changed

usaspending_api/download/management/commands/delta_downloads/builders.py

Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,79 @@ def award_financial_filter_cols(self) -> list[str]:
207207
]
208208

209209
@property
210-
def award_financial_groupby_cols(self) -> list[Any]:
210+
def award_financial_groupby_cols(self) -> list[str]:
211211
return [
212-
col
213-
for col in self._award_financial_df.columns
214-
if col not in list(self.award_financial_agg_cols) + self.award_financial_filter_cols
212+
"federal_owning_agency_name",
213+
"federal_account_symbol",
214+
"federal_account_name",
215+
"agency_identifier_name",
216+
"program_activity_code",
217+
"program_activity_name",
218+
"object_class_code",
219+
"object_class_name",
220+
"direct_or_reimbursable_funding_source",
221+
"disaster_emergency_fund_code",
222+
"disaster_emergency_fund_name",
223+
"award_unique_key",
224+
"award_id_piid",
225+
"parent_award_id_piid",
226+
"award_id_fain",
227+
"award_id_uri",
228+
"award_base_action_date",
229+
"award_latest_action_date",
230+
"period_of_performance_start_date",
231+
"period_of_performance_current_end_date",
232+
"ordering_period_end_date",
233+
"idv_type_code",
234+
"idv_type",
235+
"prime_award_base_transaction_description",
236+
"awarding_agency_code",
237+
"awarding_agency_name",
238+
"awarding_subagency_code",
239+
"awarding_subagency_name",
240+
"awarding_office_code",
241+
"awarding_office_name",
242+
"funding_agency_code",
243+
"funding_agency_name",
244+
"funding_sub_agency_code",
245+
"funding_sub_agency_name",
246+
"funding_office_code",
247+
"funding_office_name",
248+
"recipient_uei",
249+
"recipient_duns",
250+
"recipient_name",
251+
"recipient_name_raw",
252+
"recipient_parent_uei",
253+
"recipient_parent_duns",
254+
"recipient_parent_name",
255+
"recipient_parent_name_raw",
256+
"recipient_country",
257+
"recipient_state",
258+
"recipient_county",
259+
"recipient_city",
260+
"primary_place_of_performance_country",
261+
"primary_place_of_performance_state",
262+
"primary_place_of_performance_county",
263+
"primary_place_of_performance_zip_code",
264+
"cfda_number",
265+
"cfda_title",
266+
"product_or_service_code",
267+
"product_or_service_code_description",
268+
"naics_code",
269+
"naics_description",
270+
"national_interest_action_code",
271+
"national_interest_action",
272+
"submission_period",
273+
"award_type_code",
274+
"award_type",
275+
"recipient_zip_code",
276+
"award_base_action_date_fiscal_year",
277+
"award_latest_action_date_fiscal_year",
278+
"usaspending_permalink",
279+
"prime_award_summary_recipient_cd_original",
280+
"prime_award_summary_recipient_cd_current",
281+
"prime_award_summary_place_of_performance_cd_original",
282+
"prime_award_summary_place_of_performance_cd_current",
215283
]
216284

217285
def filter_to_latest_submissions_for_agencies(self, col_name: str, otherwise: Any = None) -> Column:

0 commit comments

Comments
 (0)