일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Java
- PySpark
- Google Spreadsheet
- Tkinter
- PANDAS
- Python
- Google Excel
- hive
- Github
- django
- numpy
- google apps script
- Excel
- matplotlib
- Mac
- 파이썬
- math
- c#
- array
- string
- Apache
- dataframe
- PostgreSQL
- GIT
- gas
- SQL
- Redshift
- Kotlin
- list
- Today
- Total
목록분류 전체보기 (832)
달나라 노트
information_schema를 이용하면 DB에 존재하는 table의 리스트 또는 column의 리스트 등 table에 대한 다양한 정보를 얻을 수 있습니다. select * from information_schema.tables ; 위 쿼리를 돌리면 현재 DB에 존재하는 table의 list를 얻을 수 있습니다. output되는 대표적인 정보로는 아래와 같은 것들이 있습니다. - table이 속한 cluster 정보 - table의 schema - table의 이름 select * from information_schema.columns ; information_schema의 columns에는 테이블의 정보와 테이블에 속한 column의 정보까지 들어있습니다. output되는 대표적인 정보로는 아래..
pg_catalog를 이용하면 DB에 있는 Schema list를 얻을 수 있습니다. select * from pg_catalog.pg_namespace ; pg_catalog의 pg_namespace에서 select를 하면 schema list와 schema의 owner id를 얻을 수 있습니다. select * from pg_catalog.pg_user ; pg_catalog.pg_user에는 user 정보가 저장되어있습니다. pg_user의 usesysid 컬럼과 pg_namespace의 nspowner 컬럼이 user id를 의미하므로 이 두 컬럼을 join하서 사용하면 됩니다.
Python을 사용하다보면 여러 패키지들을 설치하는건 거의 필수적입니다. 패키지를 설치할 땐 pip install command를 이용하거나 아니면 Pycharm의 Interpreter 메뉴에서 설치를 하게 되는데, 이때 간혹 이상한 이유로 설치가 안되는 경우가 있습니다. 제가 경험했던 한 경우는 tableauserverclient를 설치하려는데 자꾸 아래와 같은 에러가 뜨더라구요. Could not fetch URL https://pypi.org/simple/tableauserverclient/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exce..
split method는 문자열에 적용해서 문자열을 특정 텍스트를 기준으로 나눠 list로 만들어줍니다. Syntax string.split(separator, maxsplit) 사용법은 위와 같습니다. 어떤 string에 split method를 적용할 수 있습니다. - separator split method는 parameter로 separator를 받습니다. separator가 주어지지 않는다면 공백(' ')이 기본값으로 간주됩니다. - maxsplit 최대 몇개 separator를 감지할지를 의미합니다. maxsplit의 기본값은 -1이며, -1은 발견되는 모든 separator에 대해서 문자열을 나누라는 의미입니다. str_test = 'Apple Banana Peach Grape' list_t..