일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- list
- GIT
- dataframe
- django
- 파이썬
- PANDAS
- google apps script
- Github
- math
- c#
- Mac
- Apache
- PySpark
- string
- Python
- Java
- hive
- SQL
- array
- Kotlin
- numpy
- gas
- PostgreSQL
- matplotlib
- Tkinter
- Excel
- Google Spreadsheet
- Google Excel
- Redshift
- Today
- Total
목록분류 전체보기 (847)
달나라 노트

엑셀에서는 특정 두 날짜 사이에서 영업일(working day)의 개수를 세는 함수를 제공합니다. NETWORKDAYS(start_date, end_date, [holiday_list]) - start_date 두 날짜 사이의 영업일을 구하기 위한 시작 날짜 - end_date 두 날짜 사이의 영업일을 구하기 위한 마지막 날짜 - holiday_list (optional) 휴일 날짜 NETWORKDAYS 함수는 start_date ~ end_date 사이의 구간에서 holiday_list에 명시된 휴일 날짜를 제외한 평일의 개수를 구합니다. 주말 또한 개수에서 제외되며 주말은 토요일, 일요일로 간주됩니다. NETWORKDAYS.INTL(start_date, end_date, [weekend_set], [..

matplotlib의 arrow method는 좌표평면에 화살표를 그릴 수 있도록 해줍니다. import matplotlib.pyplot as plt plt.arrow( x=1, y=1, # 화살표 시작 지점의 x, y 좌표 (화살표 tail의 x, y 좌표) dx=2.5, dy=0.3, # 화살표 시작 지점 으로부터 x축으로 얼마, y축으로 얼마나 이동한 화살표를 그릴지를 의미 width=0.01, # 화살표 두께 length_includes_head=True, # 화살표 길이를 잴 때 head의 길이도 포함할지 여부 (True = 화살표 head 길이도 화살표 전체 길이에 포함하여 고려) head_width=0.03, # 화살표 head의 두께 head_length=0.1, # 화살표 head의 길이..

matplotlib의 bar method를 가지고 stacked bar graph를 그릴 수 있습니다. (bar method = https://cosmosproject.tistory.com/427) import matplotlib.pyplot as plt import numpy as np arr_bottom = np.array([0, 0, 0, 0]) list_x = ['2021', '2022', '2023', '2024'] arr_row_1 = np.array([34, 86, 94, 20]) arr_row_2 = np.array([59, 4, 98, 93]) plt.bar(list_x, arr_row_1, bottom=arr_bottom, width=0.5, color='pink') arr_bottom..

matplotlib의 table method는 좌표평면 위에 table을 그리는 기능을 합니다. 예시를 봅시다. import matplotlib.pyplot as plt import pandas as pd df = pd.DataFrame({ 'col1': [1, 2, 3, 4, 5], 'col2': ['a', 'b', 'c', 'd', 'e'] }) print(df) print(df.values) list_col_label = ['col1', 'col2'] list_row_color = ['pink', 'lightskyblue', 'lightgreen', 'royalblue', '#5e84ff'] list_col_color = ['powderblue', 'silver'] plt.table( cellTex..