일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Django
- heroku
- #undef
- #ifdef
- bootstrap
- href
- VS Code
- OpenCV
- PyQt5
- #if
- openweathermap
- 명령어
- jinja2
- 튜토리얼
- bootstrap4 패키지
- #ifndef
- #endif
- 성능지표
- 콘솔 가상환경 # 콘솔 #가상환경
- javascript
- 사이트 도메인
- Action
- 실시간 시계
- 환경변수 설정
- MySQL 세팅
- DB 데이터
- flask
- #else
- OpenCV + Flask
- DB 데이터 저장
- Today
- Total
목록Python/Basic (9)
PROGRAMMING
1. 10살 단위로 인구를 정리한다.¶ In [2]: import numpy as np import pandas as pd #frame1 = pd.read_csv('files/180630_Daegu.csv', sep=',') #frame2 = pd.read_csv('files/181231_Daegu.csv', sep=',') #frame3 = pd.read_csv('files/190630_Daegu.csv', sep=',') In [21]: resident_01 = pd.read_csv('files/180630_Daegu.csv', sep=',') resident_01.head(3) Out[..
In [1]: import numpy as np import pandas as pd In [282]: frame1 = pd.read_csv('files/180630_Daegu.csv', sep=',') frame2 = pd.read_csv('files/181231_Daegu.csv', sep=',') frame3 = pd.read_csv('files/190630_Daegu.csv', sep=',') In [283]: #frame1.info() # all 101 & 구분(object), other(int64) frame1.head(1) Out[283]: 구분 총계 총계 남 총계 여 중구 계 중구 남 중구 여 동구 계 동구..
mapping transform, str.title, str.upper, 일부 변경, 배열 > 카테고리 조건분류, np.sign(x), random.permutation, take, sample, One-Hot Encoding(get_dummies), .dat file, split, enumerate, add_prefix, set_option, strip, (index, find, count, replace) mapping transform¶ In [1]: import numpy as np import pandas as pd In [2]: data = pd.DataFrame(np.arange(12).reshape((3, 4)), index=['Ohio', 'Colorado',..
csv 파일(w,r), 계층적 색인 지정, skiprows, Na(NaN,NULL), na_values, 엑셀파일 (r,w), 누락된 데이터 처리, dropna, fillna, isnull, notnull, 결측치 채우기, duplicated(drop_duplicates), 데이터 변형, mapping using lambda, replace IO tools (for read)¶!(https://pandas.pydata.org/docs/user_guide/io.html) pandas user guide¶!(https://pandas.pydata.org/docs/user_guide/index.html#user-guide) pandas API reference¶!(https://pandas.pydata.org..
Pandas Series(index, values, sum, labeling, indexing) DataFrame[(columns - 순서배열 변경, rename), (행과 열 - 찾기, 대입), (조건식 활용), (Delete), (수치 범위 접근 & slicing)] Seaborn(install, titanic, indexing, Index(I, not i), ) 실수형 Series, drop in Series, drop in DataFrame, DataFrame filtering, Series sort Unique Values, Value Counts, Membership, Pandas¶https://pandas.pydata.org/ 빅데이터 시대 데이터로부터 유용한 정보를 뽑아내는 분석프로세스를 ..
Matplotplib, np.linspace, np.round, drawing chart, 색상표, 여러개의 그래프 보기, surface(from mpl_toolkits.mplot3d import Axes3D, np.meshgrid, plt.subplot, plot_surface, view_init), contour, clabel Matplotlib¶ import numpy as np import matplotlib.pyplot as plt %matplotlib inline Matplotlib 설치: pip install matplotlib # Jupyter Notebook에서 그래프를 표시 [Matplotlib Basic] https://jfun.tistory.com/63 In [1]: # versio..
Class, 연산자 메서드, array, enumerate, zip, filter, map, lambda, 깊은 복사 / 얕은 복사 Class¶# global 전역변수, private 개념이 없음 생성 class 이름:  def __init__(self, 초기값): 매개변수가없어도 self는 붙여주어야 함   멤버 초기화  메소드 정의 상속  class 이름(부모): 상속  class 이름(부모): # super : 부모클래스에 대한 매개변수를 받기 위한 방법 상속   class 이름(부모): 상속   class 이름(부모): # super : 부모클래스에 대한 매개변수를 받기 위한 방법 # property : 객체 직접 접근 제한 # __를 사용..
if문, random function, and(or), for문, reverse(reversed), 함수, list, tuple, set, dict, 예외처리, 파일 입출력, 파일 다루기 if문¶boolean - x is y : 같음(메모리 주소) : x와 y의 메모리 주소가 같은지 검사 조건문 if ~ elif ~ else 뒤에 괄호 X, 콜론을 넣어야함 내용 들여쓰기 필수 In [1]: import random coin = random.randrange(2) # [0, 2) random integer print("동전던지기 게임 시작 !!!") if coin == 0 : print("뒷면") else: print("앞면") print("게임종료") 동전던지기 게임 시작 !!! 뒷면 게임종료 Pytho..