일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Redshift
- gas
- numpy
- PySpark
- GIT
- Apache
- Java
- 파이썬
- Github
- Google Excel
- SQL
- Excel
- Mac
- Tkinter
- django
- math
- PostgreSQL
- matplotlib
- Python
- hive
- list
- Google Spreadsheet
- google apps script
- array
- dataframe
- Kotlin
- string
- c#
- PANDAS
- Today
- Total
목록Python/Python ETC (56)
달나라 노트
anaconda python을 사용할 때 Mac terminal에서 사용할 수 있는 여러 가지 command를 알아보겠습니다. conda --version anaconda interpreter의 version을 출력해줍니다. conda list anaconda에 설치된 python library 종류와 각 library의 version 정보를 출력해줍니다. (pip list와 비슷합니다.) conda install library_name conda install -c conda-forge libary_name conda install은 원하는 python library를 설치해줍니다. pip install ~~과 비슷합니다. conda install에 -c conda-forge라는 옵션을 붙인 comma..
Pycharm과 github를 연동해서 Pycharm에서 직접 git pull, git commit, git push 등의 작업을 할 수 있습니다. 근데 commit을 하려고하면 위처럼 단순히 commit할 파일과 commit message 입력 창만 보여줍니다. 어떤 부분이 수정되었는지 같이 보이면 더 좋을거같으니 설정을 좀 바꿔봅시다.해봅시다. Pycharm Preferences로 진입합니다. 좌측 상단에 commit을 검색하면 Version Control -> Commit 메뉴가 나옵니다. 여기서 보이는 Use non-modal commit interface를 체크 해제해줍니다. 그러면 아래의 이미지처럼 commit 버튼을 누른 후 나타나는 commit 창에서 내가 선택한 commit 대상이 될 파..
psycopg2를 새로운 컴퓨터에서 설치하거나 또는 version이 업그레이드되거나 한다면 아래와 같은 Error가 발생할 때가 있습니다. Error: pg_config executable not found 여러 가지 상황이 있겠지만 위 에러는 주로 psycopg2 가 설치되기 전 또는 psycopg2가 업그레이드되면서 psycopg2에 필요한 다른 모듈들을 찾지 못하기 때문일 가능성이 큽니다. Python interpreter 사용 pip install postgresql Conda interpreter 사용 conda install postgresql 어떤 interpreter를 사용하고 있는지에 따라 위 2개의 명령어 중 하나를 terminal에 입력하여 postgresql 라이브러리를 설치해줍시다..
pyhive 라이브러리는 python에서 서버에 접근하여 Hive SQL query를 실행할 수 있도록 해줍니다. 이번에는 pyhive 라이브러리를 이용해서 Hive query를 돌리는 예시를 봐봅시다. 아래 코드가 가장 기본적인 pyhive 사용 예시입니다. from pyhive import hive import pandas as pd hive_con = hive.Connection( host='test_host', port=10000, username='test_user_id', password='test_user_password', database='default', auth='LDAP' ) cursor = hive_con.cursor() test_query = ''' select tt.id, tt..