| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- SQL
- array
- PANDAS
- Github
- Kotlin
- PySpark
- Apache
- Google Spreadsheet
- google apps script
- django
- list
- GIT
- Tkinter
- numpy
- math
- Python
- Excel
- string
- Java
- Redshift
- matplotlib
- Google Excel
- gas
- Presto
- 파이썬
- hive
- c#
- dataframe
- PostgreSQL
- Today
- Total
목록Python (394)
달나라 노트
anaconda를 사용할 때 다양한 environment를 어떻게 활성화하는지 알아봅시다. conda activate environment_name 원하는 interpreter를 활성화할 땐 conda activate 명령어를 사용하면 됩니다. 예시를 봅시다. terminal을 열고 conda env list를 입력하여 현재 제 컴퓨터에 설치된 conda environment를 출력해봅시다.(conda env list 관련 = https://cosmosproject.tistory.com/919) (base) ~ % conda env list# conda environments:#base * /opt/anaconda3dj_project /opt/a..
anaconda에서는 현재 사용중인 interpreter의 정보를 출력하는 기능이 있습니다. conda info terminal을 열고 conda info 명령어를 입력해봅시다. (base) ~ % conda info active environment : base active env location : /opt/anaconda3 shell level : 1 user config file : /Users/me/.condarc populated config files : /Users/me/.condarc conda version : 24.5.0 conda-build version : 24.1.2 python version :..
anaconda를 사용할 때 현재 설치된 anaconda interpreter가 설치된 경로와 이름 등 anaconda interpreter list를 추출할 수 있는 방법을 알아봅시다. conda env list terminal을 열고 위 명령어를 입력해봅시다. (base) ~ % conda env list# conda environments:#base * /opt/anaconda3dj_project /opt/anaconda3/envs/dj_projecttestproject /opt/anaconda3/envs/testproject 그러면 위처럼 현재 설치된 interpreter의 이름과 각 interpreter가 설치된..
Dataframe에 있는 column들의 data type을 확인하는 방법은 여러 가지가 있습니다만이번에는 내가 원하는 컬럼의 data type만을 확인하고 싶을 때에는 dtypes를 사용하면 됩니다. SyntaxdataFrame.dtypes dtypes는 위처럼 그냥 dataframe에 적용만 해주면 됩니다. 예시를 봐봅시다. import pandas as pd# 1 dataframe 생성df = pd.DataFrame({ 'col1': [1, 2, 3, 4, 5], 'col2': ['a', 'b', 'c', 'd', 'e'], 'col3': [1.0, 2.5, 3.9, 0.4, 2.0]})# 2 dataframe 출력print(df)# 3 col2, col3의 data type ..