" />

欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

簡單的Python動態(tài)可視化神器,編程小白也能上手

 更新時間:2022年01月24日 11:05:35   作者:野客  
這篇文章就來介紹簡單的Python動態(tài)可視化神器,最近發(fā)現(xiàn)了一個寶藏動態(tài)可視化庫,非常簡單,即使是小白也能輕松上手。這個庫就是motionchart,它能夠用 pandas 的 dataframe 數(shù)據(jù)直接創(chuàng)建交互式的動態(tài)圖表,下面來簡單看一下如何使用。

最近發(fā)現(xiàn)了一個寶藏動態(tài)可視化庫,非常簡單,即使是小白也能輕松上手。這個庫就是motionchart,它能夠用 pandas dataframe 數(shù)據(jù)直接創(chuàng)建交互式的動態(tài)圖表,下面來簡單看一下如何使用。

1、安裝模塊

pip install motionchart


2、導(dǎo)入模塊

from motionchart.motionchart import MotionChart, MotionChartDemo


3、導(dǎo)入數(shù)據(jù)

import pandas as pd
data=pd.read_csv('data.csv')
data

4、顯示圖表

from motionchart.motionchart import MotionChart
mc = MotionChart(df = data,
              title = "data",
              key = 'year',
              x = 'data1',
              y = 'data3',
              size = 'data2')
mc.to_notebook()


總結(jié):

到此這篇關(guān)于簡單的Python動態(tài)可視化神器,編程小白也能上手的文章就介紹到這了,更多相關(guān)Python動態(tài)可視化神器內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論