반응형
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
- django
- Apache
- google apps script
- PySpark
- dataframe
- gas
- numpy
- SQL
- Excel
- hive
- Java
- array
- Mac
- Github
- Python
- Tkinter
- list
- 파이썬
- Google Excel
- Kotlin
- math
- matplotlib
- PANDAS
- Google Spreadsheet
- PostgreSQL
- Redshift
- GIT
- string
- c#
Archives
- Today
- Total
목록Fill (1)
달나라 노트

cell 객체의 fill 옵션을 조절하면 셀에 색상을 채울 수 있습니다. import pandas as pd from openpyxl.styles import PatternFill dict_test = { 'col1': [1, 2, 3, 4, 5], 'col2': ['a', 'b', 'c', 'd', 'e'], 'col3': [1234, 0.27383720, 39372, None, 102947291.293472], 'col4': [0.9, 0.5238, 0.13, 0.0028, 1024.29278], } df_test = pd.DataFrame(dict_test) xlsx_writer = pd.ExcelWriter('test.xlsx', engine='openpyxl') df_test.to_excel(x..
Python/Python Pandas
2024. 2. 26. 22:59