Skip to content

Commit

Permalink
update Census_EC units to USD, p, and Percent
Browse files Browse the repository at this point in the history
  • Loading branch information
catherinebirney committed Nov 26, 2024
1 parent a319f3b commit 212337f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flowsa/data_source_scripts/Census_EC.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def census_EC_parse(*, df_list, year, **_):
conditions = [df['FlowName'] == 'Number of establishments',
df['FlowName'] == 'Sales, value of shipments, or revenue',
df['FlowName'] == 'Distribution of sales, value of shipments, or revenue']
df['Unit'] = np.select(conditions, ['count', 'USD', 'percent'])
df['Unit'] = np.select(conditions, ['p', 'USD', 'Percent'])
df['Class'] = np.select(conditions, ['Other', 'Money', 'Money'])
df['FlowAmount'] = np.where(df['FlowName'] == 'Sales, value of shipments, or revenue',
df['FlowAmount'] * 1000,
Expand Down

0 comments on commit 212337f

Please sign in to comment.