Sign in

Daniel Bachler

@danielbachler.de
1.4K followers 887 following 92 posts

Head of Engineering at @ourworldindata.org; likes nuanced discourse, weird creatures and programming languages with ADTs

PostsRepliesMedia
Daniel Bachler @danielbachler.de · 03/04/2025
The way the other nations exports are calculated in Trumps "tariff" chart is so incredibly dumb
120
Daniel Bachler @danielbachler.de · 02/04/2025
Someone on x came up with this which seems really dumb and therefore plausible
010
Daniel Bachler @danielbachler.de · 21/11/2024
Using the Chart Data API is straightforward! Here’s an example Jupyter notebook that fetches data and metadata using Python: colab.research.google.com/drive/1HDcqC...
A screenshot of a Jupyter notebook that uses our Chart Data API using python and pandas.
153
Daniel Bachler @danielbachler.de · 21/11/2024
For developers, we’ve launched a new Chart Data API that provides the same data and metadata at predictable URLs (just append ".csv" or ".metadata.json" to any chart URL).
A screenshot of the the data API section of the new download overlay for the charts on the Our World In Data website. You can find this download modal by clicking on the download button at the lower right of every one of our charts.
2142
Daniel Bachler @danielbachler.de · 21/11/2024
The updates we’re announcing today make it even easier to work with our data. For spreadsheet users we now offer a ZIP file download package for every chart. The zip file includes the data in CSV format, metadata as JSON and a detailed README file.
A screenshot of the new data download options for the charts on the Our World In Data website. You can find this download modal by clicking on the download button at the lower right of every one of our charts.
150
Daniel Bachler @danielbachler.de · 10/03/2024
Here is what this looks like in practice to extract accommodation information from the html content of an email:
Python code using the instructor library to extract structured information on an accommodation.
110
Daniel Bachler @danielbachler.de · 17/02/2024
When programming python, do yourself a favour and install the rich library and add this stanza so you get coloured stack traces (use show_locals to add or hide local variable values): from rich.traceback import install install(show_locals=True)
A coloured python stack trace
130