INTRO Office계에 Excel이 python에는 pandas가 있다. python pandas는 통합 구조화된 데이터를 다루기에 최적화되어있으며 선택이 아닌 필수라 할 수 있다. pandas가 제공하는 data 구조와 indexing, 연산을 다루어 본다. Contents - Data Object : Series, DataFrame - Indexing, Operation pandas libray가 없으면 terminal에서 pip를 이용하여 먼저 설치한다. $ pip install pandas python code : pyTest/pyPandas1.py # -*- coding: utf-8 -*- import datetime import pandas as pd today = datetime.date..

INTRO DB Browser for SQLite 설치 DB Handling : CRUD(Create, Read, Update, Delete), Table 생성과 index, record INSERT DB data는 직접 SQL(Structured Query Language)을 다루어야 하나 여기서는 python을 이용한다. python의 pandas를 이용할 때 더욱 수월하며, 여기서는 맛보기만 배운다. 용어 SQLite MySQL나 PostgreSQL와 같은 데이터베이스 관리 시스템(DBMS)이지만, 서버가 아니라 응용 프로그램에 넣어 사용하는 비교적 가벼운 데이터베이스이다. 일반적인 RDBMS에 비해 대규모 작업에는 적합하지 않지만, 중소 규모라면 속도에 손색이 없다. 또 API는 단순히 라이브러리..
Intro - Editor : sublime text3 - python 3.9.1 - pandas 1.2.1 - xlrd 2.0.1 - openpyxl 3.0.5 pandas, xlrd, openpyxl version 확인방법 참고 : (macOS)[python] Pandas Excel 다루기 - 1 : excel 읽기, 저장, df 분석 # -*- coding: utf-8 -*- import os import pandas as pd #### dir base fpath_base = './data' #### file_name, sheet_name fnames = ('A_file.csv') #### file_dir_base fpath_bases = [os.path.join(fpath_base,fname) f..

Intro - Editor : sublime text3 - python 3.9.1 - pandas 1.2.1 - xlrd 2.0.1 - openpyxl 3.0.5 pandas 기반 통계분석 statsmodel module 사용법 사이트 www.statsmodels.org/stable/index.html Data Time Depth3 2 0.050 5 0.150 8 0.270 12 0.36 15 0.47 17 0.52 Directory Tree . ├── RegressionAnalysis_Engine.py ├── data ├── test1.csv └── test1.xlsx RegressionAnalysis_Engine.py # -*- coding: utf-8 -*- import os import panda..
Intro - Editor : sublime text3 - python 3.8.1 - pandas 1.0.1 - xlrd 1.2.0 : excel read - openpyxl 3.0.3 : excel save pandas에서 excel을 다루기 위해서 xlrd,openpyxl module이 필요하다. import pandas as pd df = pd.read_excel('fname',sheet_name='sheet_name') ImportError: Missing optional dependency 'xlrd'. Install xlrd >= 1.0.0 for Excel support Use pip or conda to install xlrd. ## python3 & modules(pandas, xlrd,..
- Total
- Today
- Yesterday
- github
- Django
- vscode
- pyserial
- 코로나19
- 확진
- r
- Templates
- ERP
- SSH
- analysis
- arduino
- COVID-19
- Pandas
- MacOS
- CSV
- Model
- server
- sublime text
- Regression
- 라즈베리파이
- Python
- raspberrypi
- 코로나
- Raspberry Pi
- template
- DS18B20
- 자가격리
- git
- DAQ
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |