当前位置:网站首页>实时疫情数据可视化分析
实时疫情数据可视化分析
2022-07-23 12:55:00 【TJMtaotao】
导入模块
import requests
import pandas as pd
import time
一、数据获取
具体网站:疫情秘书|全球新冠肺炎疫情实时大数据报告,请收藏!
1.数据获取
data_中国=requests.get('http://dzq.wenlvnews.com/index.php/yiqing/push.html')
data_外国=requests.get('http://dzq.wenlvnews.com/index.php/yiqing/glbpush.html')
2.数据解析[最小单位为省份]
2-1.国内信息
data_中国=pd.DataFrame(data_中国.json()['allData']['area'])[['provinceName','confirmedCount','curedCount','deadCount']]
data_中国.columns=['省','累积确诊','累积痊愈','累积死亡']
data_中国['国家']='中国'
data_中国=data_中国[['国家','省','累积确诊','累积痊愈','累积死亡'
边栏推荐
- PgSQL mistakenly deletes PG_ Wal file, service startup failed
- go run,go build,go install有什么不同
- The competition boss is in Huawei: network experts are from Stanford physics department, and some people "work as much as reading a doctoral degree"
- Flutter | 指定页面回传值的类型
- Differences between LRU and LFU elimination strategies in redis
- [2022 freshmen learning] key points of the second week
- 快速学会使用文件的权限
- FreeRTOS个人笔记-挂起/解挂任务
- Dynamic programming knapsack problem 01 knapsack explanation
- AC automata and fail tree
猜你喜欢

C#入门系列(二十八) -- LINQ的查询语法

(已解决)idea编译Gradle项目提示 错误找不到符号

VMware platform STS certificate expired

Basic auth plug-in based on apisik authorizes Minio file upload function

动态规划背包问题之完全背包详解

The competition boss is in Huawei: network experts are from Stanford physics department, and some people "work as much as reading a doctoral degree"

智慧民航新业态崭露头角,图扑数字孪生入局民航飞联网

20220722挨揍记录

Complete knapsack explanation of dynamic programming knapsack problem

移动端H5 - 手撸一个生命线 timeline
随机推荐
Introduction to Huawei's new version of datacom certification
[taro] applet picker dynamically obtains data
智慧民航新业态崭露头角,图扑数字孪生入局民航飞联网
How to choose fluorescent dyes in laser confocal
快速学会使用文件的权限
Convert.Calss file to.Jar idea
中国化NFT?NFR横空出世
国产AI蛋白质结构预测再现突破,用单条序列解决3D结构,彭健团队:“AlphaFold2以来最后一块拼图补齐了”...
mysql的常见问题
动态规划背包问题之01背包详解
Please initialize the log4j system properly.
AWS 6 AWS IOT
[C language] structure, enumeration and union
16 automated test interview questions and answers
为什么使用opengaussjdbc的时候老是出现FATAL?(标签-数据库|关键词-user)
20220721挨揍内容
机器狗背冲锋枪射击视频火了,网友瑟瑟发抖:stooooooooppppp!
低佣金账户怎么开?安全吗?
VMware platform STS certificate expired
Basic concept and deployment of kubernetes