Blog

Tutorials and notebooks for working with agricultural data.

Weekly Export Sales Tracker

Build a seasonal overlay of corn export commitments to compare marketing year pace across prior seasons.

exports = fdata.get( 'exportsales_api', param=['tc'], comdty=['c'], shape_id='us' ) # Keep last 5 marketing years latest_year = exports['year'].max() export = exports[exports['year'] >= latest_year - 5].copy() print(f"{len(export)} rows, years {export['year'].min()}–{export['year'].max()}")