일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- string 메소드
- 2557
- Django란
- c++
- 백준
- k-eta
- 시간복잡도
- 표준 입출력
- 입/출력
- string 함수
- Django의 편의성
- EOF
- 알고리즘 공부방법
- Django Nodejs 차이점
- 이분그래프
- 구조체와 클래스의 공통점 및 차이점
- 자료구조
- iOS14
- 프레임워크와 라이브러리의 차이
- double ended queue
- scanf
- 입출력 패턴
- vscode
- getline
- 엑셀
- UI한글변경
- correlation coefficient
- 장고란
- 연결요소
- 매크로
- Today
- Total
목록분류 전체보기 (865)
Storage Gonie
from pandas import DataFramedf = DataFrame({"x1": [1, 2, 3], "x2": [11, 22, 33], "x3": [111, 222, 333], "x4": [12, 13, 14]}) print(df) """ x1 x2 x3 x4 0 1 11 111 12 1 2 22 222 13 2 3 33 333 14 """1. 선택적으로 column 삭제하는 방법del df["x1"] print(df) """ x2 x3 x4 0 11 111 12 1 22 222 13 2 33 333 14 """df = df.drop("x2", 1) # axis = 1일때 세로축 삭제, 0일때 가로축 삭제 print(df) """ x3 x4 0 111 12 1 222 13 2 333 14 """..
from pandas import Series, DataFrame #데이터프레임 생성 df = DataFrame({"x1":[1,2,3], "x2":[11,22,33], "x3":[111,222,333]}, index=["i1","i2","i3"]) print(df) """ x1 x2 x3 i1 1 11 111 i2 2 22 222 i3 3 33 333 """ 1. 단일값을 가지는 column 추가 df["x4"] = 6 print(df) """ x1 x2 x3 x4 i1 1 a 111 6 i2 2 b 222 6 i3 3 c 333 6 """ 2. 다른 column을 이용한 column 추가 방법 #Boolean 값을 가지는 column 추가 df["x5"] = df["x1"] > 300 print(df..
from pandas import Series, DataFrame import numpy as np 1. column명 수정 방법 4가지 #데이터프레임 생성 df = DataFrame({"x1":[1,2,3], "x2":[11,22,33], "x3":[111,222,333]}) print(df) """ x1 x2 x3 0 1 11 111 1 2 22 222 2 3 33 333 """ #column 전체수정 df.columns = ["c1", "c2", "c3"] print(df) """ c1 c2 c3 0 1 11 111 1 2 22 222 2 3 33 333 """ #column 부분수정1 df.rename(columns={"c1":"CC1"}, inplace = True) #False이면 아무변화 없..
from pandas import Series, DataFrame import numpy as np0. 빈 데이터프레임 객체 생성 방법df = DataFrame(columns=("c1", "c2", "c3")) print (df) """ Empty DataFrame Columns: [c1, c2, c3] Index: [] """tempDF = DataFrame() df = tempDF.append({"c1": "", "c2": "", "c3": ""}, ignore_index=True) print(df) #append는 원본을 수정하지 않으므로 주의하자 """ c1 c2 c3 0 """1. 기본 데이터프레임 객체 생성 방법df = DataFrame([1000, 2000, 3000, 4000]) print..
OS가 Mac인 경우 1. 프로젝트 여는 창이 뜨도록 Pycharm을 재실행2. Check out from Version Control - Git 을 클릭3.' URL'에 Github 프로젝트의 URL을 복사해 넣고, 컴퓨터에서 저장할 위치인 'Directory'를 변경해준다.4. Clone 완료 OS가 Windows인 경우 1. Pycharm에서 VCS – Checkout from Version Control – Github을 클릭.그러면 다음과 같은오류를 만날 수 있을 것이다. “Cannot run program “git.exe”: CreateProcess error=2, 지정된 파일을 찾을 수 없습니다.” 2. 이를 해결하기 위해 https://desktop.github.com/ 에 접속하여 자신의..