일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- google apps script
- PySpark
- Mac
- SQL
- array
- Python
- Redshift
- Github
- Kotlin
- string
- Java
- list
- django
- Google Spreadsheet
- math
- dataframe
- hive
- 파이썬
- numpy
- Tkinter
- c#
- matplotlib
- gas
- PostgreSQL
- Google Excel
- PANDAS
- GIT
- Excel
- Apache
- Today
- Total
목록table (3)
달나라 노트
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..
select * from pg_tables ; Redshift에서는 pg_table를 이용하면 database에 있는 table의 종류와 각 tabe의 owner를 알 수 있습니다.
SQL을 다루다보면 어떤 table의 정보가 필요한 경우가 있습니다. 여기서 말하는 정보란 table에 존재하는 column의 종류, column의 자료형(data type), column에 들어갈 수 있는 데이터의 최대 크기 등을 의미합니다. 이러한 정보들을 DDL(Data Definition Language, Data Description Language)이라고 합니다. SQL에서 DDL이란 보통 table의 이름, table에 존재하는 column 종류, 각 column의 data type, column들이 수용할 수 있는 데이터의 최대 크기, distinct key, sort key 등 table의 특징에 관한 정보를 담은 내용을 의미합니다. (더 자세하고 정확히 말하면 위 설명보다 더 상세한 정..