일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- numpy
- math
- Excel
- Github
- PANDAS
- django
- Google Spreadsheet
- Redshift
- PySpark
- Java
- string
- dataframe
- gas
- array
- c#
- Kotlin
- matplotlib
- Mac
- 파이썬
- Apache
- hive
- Tkinter
- PostgreSQL
- Python
- google apps script
- GIT
- SQL
- Google Excel
- list
- Today
- Total
목록TEXT (3)
달나라 노트
matplotlib의 text method는 그래프에 텍스트를 그릴 수 있게 해줍니다. import matplotlib.pyplot as plt list_x = [10, 20, 30, 40, 50] list_y = [10, 30, 15, 20, 5] plt.plot(list_x, list_y, color='skyblue', marker='o', markerfacecolor='blue', markersize=6) plt.xlim(0, 60) plt.ylim(0, 40) plt.text(x=0, y=0, # text box를 표시할 x, y좌표. (이것은 그래프 속 좌표와 동일.) s='Test text', # 표시할 text fontsize=20, # text 크기 horizontalalignment='l..
replace(), replaceAll() method는 둘 다 문자열에서 특정 텍스트를 어떠한 다른 텍스트로 바꿔줍니다. Syntax string.replace(text_before, text_after) string.replaceAll(text_before, text_after) 일반적인 replace() method사용법과 비슷합니다. string에 적용할 수 있으며 2개의 인자를 받습니다. text_before = string에서 찾아낼 text text_after = 새롭게 대체할 text replace()와 replaceAll()의 차이는 다음과 같습니다. replace()는 string에서 text_before를 찾고 가장 처음 찾아진 text만을 text_after로 바꿉니다. 즉, str..
=text(value, format) text 함수는 위처럼 사용할 수 있으며, value를 지정한 format대로 변환하여 표시해주는 역할을 합니다. 예시는 위와 같습니다. 사용할 수 있는 format은 사용자 지정 표시형식에서 사용하는 것과 동일하다고 생각하면 편합니다. support.microsoft.com/ko-kr/office/text-%ED%95%A8%EC%88%98-20d5ac4d-7b94-49fd-bb38-93d29371225c TEXT 함수 구문: TEXT(value, format_text) support.microsoft.com 기타 다른 format은 위 링크 참조.