반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- hive
- Kotlin
- math
- string
- SQL
- Apache
- numpy
- GIT
- PySpark
- list
- Mac
- c#
- Github
- gas
- Redshift
- google apps script
- Java
- matplotlib
- Google Spreadsheet
- PostgreSQL
- array
- Tkinter
- dataframe
- Google Excel
- Excel
- PANDAS
- 파이썬
- Python
- django
Archives
- Today
- Total
목록histogram (1)
달나라 노트
Python matplotlib : hist (histogram, 히스토그램, 개수분포)
히스토그램(Histogram)이란 x축을 값, y축은 x축의 값들이 나온 횟수(또는 개수)를 나타낸 그래프입니다. 여기서 x축을 계급, 횟수나 개수를 나타내는 y축을 도수라고 하는데 크게 중요하진 않습니다. matplotlibe의 hist method는 이러한 histogram을 그릴 수 있도록 해줍니다. import matplotlib.pyplot as plt value_list = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10] plt.hist(value_list) plt.xlabel('number') plt.ylabel('count') plt.show() 위 예시..
Python/Python matplotlib
2022. 1. 23. 00:39