{"id":21313,"library":"eurostat","title":"eurostat","description":"A Python package to download data from Eurostat, the statistical office of the European Union. Version 1.1.1 supports pandas DataFrames, caching, and bulk downloads. Low release cadence; last release in 2022.","status":"active","version":"1.1.1","language":"python","source_language":"en","source_url":"https://github.com/eurostat/eurostat","tags":["eurostat","statistics","european-union","data","pandas"],"install":[{"cmd":"pip install eurostat","lang":"bash","label":"Default installation"}],"dependencies":[{"reason":"Required for DataFrame output","package":"pandas","optional":false},{"reason":"HTTP requests to Eurostat API","package":"requests","optional":false}],"imports":[{"note":"Works but less conventional; direct import is preferred","wrong":"import eurostat; eurostat.get_data_df(...)","symbol":"get_data_df","correct":"from eurostat import get_data_df"},{"note":"Class-based access; no common mistake","wrong":"","symbol":"EurostatDataset","correct":"from eurostat import EurostatDataset"}],"quickstart":{"code":"from eurostat import get_data_df\ndf = get_data_df('tps00001')\nprint(df.head())","lang":"python","description":"Download dataset 'tps00001' (population) as a pandas DataFrame."},"warnings":[{"fix":"Always check Eurostat API or website for current dataset codes.","message":"Eurostat changes dataset IDs and column names without notice; code may break after a few months.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'get_data_df' with 'pars=TXT' or filter parameters to limit size.","message":"Large datasets may download as multiple files; the package auto-aggregates but can be slow.","severity":"gotcha","affected_versions":"all"},{"fix":"Use 'columns_rename' parameter or rename after download.","message":"Column names are multilingual codes (e.g., 'geo', 'TIME'); you must map them manually.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install eurostat' in the correct environment.","cause":"Package not installed or installed in wrong Python environment.","error":"ModuleNotFoundError: No module named 'eurostat'"},{"fix":"Wait a few minutes and retry; do not make rapid requests.","cause":"Eurostat API rate limiting or temporary restriction.","error":"HTTPError: 403 Client Error: Forbidden for url"},{"fix":"Check the dataset code and Eurostat status page.","cause":"Eurostat TSV format changed or dataset not available.","error":"Unable to parse the downloaded file"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}