그래프 그리기 Plotly

2020. 9. 13. 12:28Python

Plotly

그리는 방법

1. 쉬운 방법 : iplot

import chart_studio.plotly as py
import cufflinks as cf
import numpy as np
import pandas as pd
cf.go_offline(connected=True)

#print(np.random.rand(5, 2))
df = pd.DataFrame(np.random.rand(5, 2), columns=['A', 'B'])
print(df)

# 그래프 도움말 보기
#print(cf.help())

# 그래프 그리기
df.iplot(kind='bar')

2.  어려운(?) 방법

 

 

'Python' 카테고리의 다른 글

pandas 잊기 쉬운 기능 모음  (0) 2021.01.26
점프 투 파이썬 연습문제 풀기 CH2, 3  (0) 2020.12.30
pandas3  (0) 2020.09.10
Pandas  (0) 2020.09.08
Jupyter 노트북 단축키 + 기본 설명  (0) 2020.08.31