[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-109479-en":3,"doc-seo-109479-105":30,"detail-sidebar-cat-0-en-105":96},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":11,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},109479,8796095462418,"Noah","https://ap-avatar.wpscdn.com/avatar/80000253c1241d02b47?x-image-process=image/resize,m_fixed,w_180,h_180&k=1778826106357471780",6,"Technology","The World Bank's MFMod Framework in Python with Modelflow","Guidance on using the World Bank MFMod framework in Python with Modelflow, explaining how the framework was developed and how it can be moved toward open-source use. Covers end-to-end setup, including installing Python and ModelFlow, updating ModelFlow, and using Jupyter Notebook for workflows. Provides practical Python foundations using pandas, including Series, DataFrame, and key methods such as .loc[]. Extends pandas integration via ModelFlow behaviors like .upd() and .mfcalc(), then demonstrates how to access and run publicly available World Bank models and manage model inputs through ModelFlow.","Pub lic Disclosure Authorized Pub lic Disclosure Authorized Pub lic Disclosure Authorized Pub lic Disclosure Authorized  \nThe World Bank's MFMod Framework in Python with Modelflow  \nAndrew Burns and Ib Hansen  \n© 2025 International Bank for Reconstruction and Development / The World Bank  \n1818 H Street NW Washington DC 20433 Telephone: 202-473-1000  \n[Internet: www.worldbank.org](Internet: www.worldbank.org)  \nThis work is a product of the staff of The World Bank with external contributions. The findings, interpretations, and conclusions expressed in this work do not necessarily reflect the views of The World Bank, its Board of Executive Directors, or the governments they represent.  \nThe World Bank does not guarantee the accuracy, completeness, or currency of the data included in this work and does not assume responsibility for any errors, omissions, or discrepancies in the information, or liability with respect to the use of or failure to use the information, methods, processes, or conclusions set forth. The boundaries, colors, denominations, links/footnotes and other information shown in this work do not imply any judgment on the part of The World Bank concerning the legal status of any territory or the endorsement or acceptance of such boundaries. The citation of works authored by others does not mean the World Bank endorses the views expressed by those authors or the content of their works.  \nNothing herein shall constitute or be construed or considered to be a limitation upon or waiver of the privileges and immunities of The World Bank, all of which are specifically reserved.  \nRights and Permissions  \nThe material in this work is subject to copyright. Because The World Bank encourages dissemination of its knowledge, this work may be reproduced, in whole or in part, for noncommercial purposes as long as full attribution to this work is given.  \nAny queries on rights and licenses, including subsidiary rights, should be addressed to World Bank Publications, The World Bank Group, 1818 H Street NW, Washington, DC 20433, USA; fax: 202-522- 2625; [e-mail: pubrights@worldbank.org](e-mail: pubrights@worldbank.org).  \nCover design: Marie-Anne Chambonnier  \nThe World Bank's MFMod Framework in Python with Modelflow  \nAndrew Burns and Ib Hansen  \n[https://reproducibility.worldbank.org](https://reproducibility.worldbank.org)  \nA reproducibility package is available for this book in the Reproducible Research Repository at:  \n[https://reproducibility.worldbank.org/index.php/catalog/324](https://reproducibility.worldbank.org/index.php/catalog/324) .  \nThe World Bank's MFMod Framework in Python with Modelflow  \nAndrew Burns and Ib Hansen  \nNov 15, 2025  \nCONTENTS  \nI The World Bank's MFMod Framework and Modelflow 3  \n1 Introduction 5  \n1. 1 The MFMod Framework at the World Bank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  \n1.2 Early steps to bring the MFMod system to the broader economics community ............. 6  \n1.3 Moving the framework to an open-source footing ............................ 7  \n2 Macrostructural models 8  \n2.1 A system of equations .......................................... 9  \n2.2 The MFMod Framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  \n3 Installation 13  \n3.1 Installation of Python ........................................... 14  \n3.2 Installation of ModelFlow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  \n3.3 Updating ModelFlow ........................................... 18  \nII Some python essentials for using World Bank models with modelflow 19  \n4 Introduction to Jupyter Notebook 21  \n4.1 Starting Jupyter Notebook ........................................ 22  \n4.2 Creating a notebook ........................................... 23  \n4.3 Jupyter Notebook cells .......................................... 24  \n5 Some Python basics 30  \n5.1 Starting python in windows ........................................ 31  \n5","cbCaie7rsLcvL3Pr","https://ap.wps.com/l/cbCaie7rsLcvL3Pr","pdf",14614922,1,334,"English","en",105,"# The World Bank's MFMod Framework and Modelflow\n## Introduction\n## The MFMod Framework at the World Bank\n## Installation\n# Some python essentials for using World Bank models with modelflow\n## Introduction to Jupyter Notebook\n## Some Python basics\n## Introduction to Pandas, Series and dataframes\n# Selected modelflow extensions to pandas\n## ModelFlow and Pandas DataFrames\n# Using modelflow with World Bank models\n## Using ModelFlow with World Bank models\n## Working with a World Bank Model under ModelFlow","[{\"question\":\"What does the book explain about the MFMod Framework and Modelflow?\",\"answer\":\"It introduces the World Bank MFMod Framework and describes how Modelflow can be used in Python to work with that framework.\"},{\"question\":\"How does the guide help users set up and use the environment?\",\"answer\":\"It covers installation steps for Python and ModelFlow, updating ModelFlow, and using Jupyter Notebook to build an interactive workflow.\"},{\"question\":\"How are pandas features connected to ModelFlow in the document?\",\"answer\":\"It explains how ModelFlow uses pandas DataFrames, including column names, index/time dimensions, leads and lags, and methods such as .upd() and .mfcalc().\"},{\"question\":\"How does the document show working with World Bank models in ModelFlow?\",\"answer\":\"It explains how to access publicly available World Bank models via ModelFlow methods, how to prepare the workspace, load models and data, and use ModelFlow to manage model groups and model execution.\"}]","The World Bank's MFMod Framework in Python with Modelflow | PDF",1784480188,842,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":91,"head_meta":93,"extra_data":95,"updated_unix":28},"the-world-banks-mfmod-framework-in-python-with-modelflow","",{"@graph":36,"@context":90},[37,54,69],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/technology/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/the-world-banks-mfmod-framework-in-python-with-modelflow/109479/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":63,"encodingFormat":61,"isAccessibleForFree":64,"interactionStatistic":65},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-07-30","2026-07-19",true,{"@type":66,"interactionType":67,"userInteractionCount":11},"InteractionCounter",{"@type":68},"ViewAction",{"@type":70,"mainEntity":71},"FAQPage",[72,78,82,86],{"name":73,"@type":74,"acceptedAnswer":75},"What does the book explain about the MFMod Framework and Modelflow?","Question",{"text":76,"@type":77},"It introduces the World Bank MFMod Framework and describes how Modelflow can be used in Python to work with that framework.","Answer",{"name":79,"@type":74,"acceptedAnswer":80},"How does the guide help users set up and use the environment?",{"text":81,"@type":77},"It covers installation steps for Python and ModelFlow, updating ModelFlow, and using Jupyter Notebook to build an interactive workflow.",{"name":83,"@type":74,"acceptedAnswer":84},"How are pandas features connected to ModelFlow in the document?",{"text":85,"@type":77},"It explains how ModelFlow uses pandas DataFrames, including column names, index/time dimensions, leads and lags, and methods such as .upd() and .mfcalc().",{"name":87,"@type":74,"acceptedAnswer":88},"How does the document show working with World Bank models in ModelFlow?",{"text":89,"@type":77},"It explains how to access publicly available World Bank models via ModelFlow methods, how to prepare the workspace, load models and data, and use ModelFlow to manage model groups and model execution.","https://schema.org",{"og:url":52,"og:type":92,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":94,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":97},[98,102,106,110,115,118,123,128,133,136,140],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":99,"show_sort_weight":100,"slug":101},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":103,"show_sort_weight":104,"slug":105},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},"Exam",70,"exam",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},5,"Comic",60,"comic",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":116,"slug":117},50,"technology",{"id":119,"doc_module":4,"doc_module_name":46,"category_name":120,"show_sort_weight":121,"slug":122},7,"Healthcare",40,"healthcare",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":126,"slug":127},8,"Research & Report",30,"research-report",{"id":129,"doc_module":4,"doc_module_name":46,"category_name":130,"show_sort_weight":131,"slug":132},9,"Religion & Spirituality",20,"religion-spirituality",{"id":131,"doc_module":4,"doc_module_name":46,"category_name":134,"show_sort_weight":131,"slug":135},"World Cup","world-cup",{"id":137,"doc_module":4,"doc_module_name":46,"category_name":138,"show_sort_weight":137,"slug":139},10,"Lifestyle","lifestyle",{"id":141,"doc_module":4,"doc_module_name":46,"category_name":142,"show_sort_weight":111,"slug":143},19,"General","general"]