Pandas 결측치 처리 - isnull, fillna, dropna
Pandas 결측치 처리 - isnull, fillna, dropna 데이터 분석 copy DataFrame을 복제 복제한 DataFrame을 수정해도 원본에는 영향을 미치지 않음 df_copy = df.copy() 결측치 결측치 처리 결측치 데이터 확인 결측치가 아닌 데이터 확인 결측 ...
Pandas 결측치 처리 - isnull, fillna, dropna 데이터 분석 copy DataFrame을 복제 복제한 DataFrame을 수정해도 원본에는 영향을 미치지 않음 df_copy = df.copy() 결측치 결측치 처리 결측치 데이터 확인 결측치가 아닌 데이터 확인 결측 ...
Pandas 파일입출력 - Excel과 CSV 파일 처리 파일입출력 Excel 불러오기 excel = pd.read_excel('경로',sheet_name='') excel.head() : 불러온 excel 5행으로 확인 excel.keys() : excel sheet 조회 excel.to_excel('sample.xlsx', in...
Pandas concat과 merge - 데이터 연결과 병합 concat() - 데이터 연결 concat()은 DataFrame을 연결함. 행 방향으로 연결 기본 값인 axis = 0이 지정되어 있고, 행 방향으로 연결함. 또한, 같은 column을 알아서 찾아서 데이터를 연결 pd.concat([gas1, gas2]) 연결...
가상환경 설정 가상환경 생성 pandas 폴더에서 git bash 열기 python -m venv venv 입력 가상환경 활성화 source venv/Scripts/activate 입력 가상환경에서의 도구 설치 pip install jupyterlab pip install openpyxl pip install pandas pip ...
Git 고급 230725 2번째 수업 오전수업 Site 만들기 템플릿으로 개인 site 만들기 start Bootstrap camp29에 다운로드 받은 템플릿 압축해제후 그 폴더에서 code로 열기 git init -> git add . -> git commit -m “message” -> (repository 생성) -...
Python 객체지향 프로그래밍(OOP) - 클래스, 상속, 다중상속 객체지행 프로그래밍(OOP) 클래스(class) : 같은 종류의 집단에 속하는 속성(attribute)과 행위(method)를 정의한 것 인스턴스(instance) : 클래스를 실제로 메모리상에 할당한 것 속성(attribute) : 클래스 / 인스턴스가 가지고 있는...
Python 에러와 예외처리 - try, except, finally Error synatax error if True: pass else print('hi' Exception ZeroDivisionError print(5/0) ZeroDivisionError: division b...
Python 모듈과 패키지 - import, 내장 패키지 module import fibo print(fibo) fibo.fib_loop(4) fibo.fib_rec(3) 패키지 패키지 안에 __init__.py 파일이 있어야 패키지로 인식 mypackage/ __init__.py math/ __...
Python map(), zip(), filter() 함수 5. map(), zip(), filer() 5.1 map() map(function, iterable) a = [1,2,3] # int number_str = map(str, a) print(number_str) -> <map object at 0x0000020...
Python 메소드 - 문자열, 리스트, 딕셔너리, 세트 메소드 메소드 문자열 메소드 .capitalize() : 맨 앞 대문자 a = 'hello' a.capitalize() 'Hello' # 출력값 print(a) hello # 출력값 : 원본은 그대로 있음 .title() : 각 문자별 대문자 a = 'h...