plotly (17) 썸네일형 리스트형 [기타 데이터] Commerce 데이터 분석 3 (EDA / 시각화 / 리뷰) 이전 내용은 아래 글에서 확인 하실 수 있습니다. [Data Analysis/기타 데이터] - [기타 데이터] Commerce 데이터 분석 1 (데이터 확인 / 질문하기) [기타 데이터] Commerce 데이터 분석 1 (데이터 확인 / 질문하기) Commerce 데이터 분석 데이터 출처 : https://archive.ics.uci.edu/ml/datasets/online+retail# UCI Machine Learning Repository: Online Retail Data Set Online Retail Data Set Download: Data Folder, Data.. sks8410.tistory.com [Data Analysis/기타 데이터] - [기타 데이터] Commerce 데이터 분석 .. [기타 데이터] LA Lakers 경기 데이터 분석 3 (EDA / 시각화 / 리뷰) 이전 내용은 아래 글에서 확인 할 수 있습니다. [기타 데이터] LA Lakers 경기 데이터 분석 1 (데이터 확인 / 질문) LA Lakers 경기 데이터 분석 데이터 출처 : http://www.basketballgeek.com/data/ 1. 데이터 확인 # 기본 패키지 불러오기 import math import numpy as np import pandas as pd import matplotlib.pyplot as.. sks8410.tistory.com [기타 데이터] LA Lakers 경기 데이터 분석 2 (데이터 전처리) 이전 내용은 아래 글에서 확인 부탁 드리겠습니다. [기타 데이터] LA Lakers 경기 데이터 분석 1 (데이터 확인 / 질문) LA Lakers 경기 데이터 분석 데이.. [기타 데이터] Starwars 케릭터 분석 3 (EDA / 시각화 / 리뷰) 이전 내용은 아래에서 확인 하실 수 있습니다. [기타 데이터] Starwars 케릭터 분석 1 (데이터 확인) Starwars Character 분석 데이터 출처 : https://dplyr.tidyverse.org/reference/starwars.html - 스타워즈 캐릭터의 성별 비율 - 성별에 따른 캐릭터 신장의 분포 - 가장 무거운 캐릭.. sks8410.tistory.com [기타 데이터] Starwars 케릭터 분석 2 (데이터 전처리) 이전 내용은 아래에서 확인 하실 수 있습니다. - 스타워즈 캐릭터의 성별 비율 - 성별에 따른 캐릭터 신장의 분포 - 가장 무거운 캐릭.." data-og-host="sks8410.tistory.com" data-og-source-url="ht... [plotly] annotation(주석) 넣기 참고 사이트: https://plotly.com/python/text-and-annotations/ 상세 옵션: https://plotly.com/python/reference/#layout-annotations import plotly.graph_objects as go fig = go.Figure() fig.add_trace( go.Bar( x=merged_order_month_sum_from2017.index, y=merged_order_month_sum_from2017['payment_value'], text=merged_order_month_sum_from2017['payment_value'], textposition='auto', texttemplate='R$ %{y:,.0f}', marker.. [plotly] bar chart 색깔 바꾸기 # 색상 설정 colors = ['#03588C',] * len(merged_order_month_sum_from2017.index) colors[10] = '#F24472' import plotly.graph_objects as go fig = go.Figure() fig.add_trace( go.Bar( x=merged_order_month_sum_from2017.index, y=merged_order_month_sum_from2017['payment_value'], text=merged_order_month_sum_from2017['payment_value'], textposition='auto', texttemplate='R$ %{text:,.0f}', marker_color=colors # 색상.. [plotly] plotly.graph_objects 로 차트 그리기 라이브러리 로드 import plotly.graph_objects as go import plotly.offline as pyo pyo.init_notebook_mode() 기본그리기 차트 종류는 아래 사이트에서 확인 할 수 있습니다. Basic Chart : https://plotly.com/python/basic-charts/ Statistical Chart : https://plotly.com/python/statistical-charts/ fig = go.Figure() fig.add_trace( go.Bar( x = df.index, y = df["A"] ) ) fig.show() 다중 그래프 그리기 fig = go.Figure() fig.add_trace( go.Bar( x = df.index.. [plotly] iplot 차트 세부 요소 변경 하기 라이브러리 로드 import chart_studio.plotly as py import cufflinks as cf cf.go_offline(connected=True) x 축, y 축, 차트 타이틀 설정 df.iplot(kind = "line", xTitle = "X title", # x 축 타이틀 yTitle = "Y title", # y 축 타이틀 title = "title name" # 차트 타이틀 ) 차트 테마 변경 cf.getThemes() 위와 같이 총 7개의 테마를 확인 할 수 있습니다. themes = cf.getThemes() for theme_item in themes: df.iplot(kind = "line", theme = theme_item, xTitle = "X title", .. [plotly] iplot 으로 line chart 그리기 라이브러리 로드 import chart_studio.plotly as py import cufflinks as cf cf.go_offline(connected = True) line chart 그리기 df.iplot(kind = "line") kind 에 line 대신 scatter 를 사용해도 동일한 line chart 가 그려집니다. (mode 등 세부사항도 동일하게 적용 됩니다.) df.iplot(kind = "scatter") line chart mode : lines (default) df.iplot(kind = "line", mode = "lines) line chart mode : markers df.iplot(kind = "line", mode = "markers") line chart m.. 이전 1 2 3 다음