Skip to content

haichaozheng/fiscal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

国家财政数据分析应用

这个应用使用 Streamlit 展示国家财政预算收入和支出数据,并计算财政赤字和赤字率。

安装依赖

确保你已经安装了 Python 3.7 或更高版本。然后安装所需的依赖项:

pip install -r requirements.txt

如果上面的命令失败,你可能需要先安装 pip 或更新 pip:

python -m ensurepip --upgrade
pip install --upgrade pip
pip install -r requirements.txt

运行应用

安装依赖后,可以运行以下命令启动应用:

streamlit run fiscal_app.py

如果 streamlit 命令未找到,可以尝试:

python -m streamlit run fiscal_app.py

应用将启动一个本地服务器,默认在 http://localhost:8501 访问。

功能说明

  1. 读取国家财政预算收入和支出数据
  2. 合并数据并计算财政赤字和赤字率
  3. 展示数据表格
  4. 可视化财政收入、支出、赤字和赤字率的趋势

注意事项

  • 确保数据文件 国家财政预算收入.xls国家财政支出.xls 存在于指定路径中
  • 如果遇到编码问题或数据读取错误,请检查 Excel 文件格式是否正确

About

a case study for data analysis and presentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages