flowsa
flowsa copied to clipboard
Add annual wholesale and retail trade margin
Add FBAs for Annual Wholesale Trade Survey using 2022 data to get 2022 and previous years back to 2012. Target is Table 4 to get the gross margin data.
The Annual Retail Trade Survey will provide the analogous data for Retail. See this table https://www2.census.gov/programs-surveys/arts/tables/2022restated/gm.xlsx
Table 4: https://www2.census.gov/programs-surveys/awts/tables/2022/2022_awts_purchmarg_nomsbo_table4.xlsx
Added in 71cc528
The URL wasn't loading for me
requests.exceptions.SSLError: HTTPSConnectionPool(host='www2.census.gov', port=443): Max retries exceeded with url: /programs-surveys/arts/tables/2022restated/gm.xlsx (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))
Hmm, I confirmed I could run it just now
flowsa.generateflowbyactivity.main(source='Census_ARTS', year='2013-2022')