Jonghostory


Programming/Pandas

[Pandas] 타입 변환(astype(), pd.to_datetime(), pd.to_numeric())

🔉 빅데이터 분석을 편리하게 해주는 파이썬 라이브러리인 Pandas에 대해 공부해보자! https://pandas.pydata.org/ pandas - Python Data Analysis Library pandas pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language. Install pandas now! pandas.pydata.org ☑️ 사용데이터 선언 import pandas as pd df = pd.DataFrame({'판매일' : ['5/11/21', '5/12/21', '5/13/..

Programming/Pandas

[Pandas] 결측값 처리(isnull(), dropna(), fillna())

🔉 빅데이터 분석을 편리하게 해주는 파이썬 라이브러리인 Pandas에 대해 공부해보자! https://pandas.pydata.org/ pandas - Python Data Analysis Library pandas pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language. Install pandas now! pandas.pydata.org 데이터가 처음부터 없거나, 데이터 처리 과정 중 데이터가 손실되는 이유로 결측값이 존재할 수 있다. 다양한 이유로 생기는 결측값은 분석과정에서 오류를 범하게 ..

Programming

Python 백준 1269번 : 대칭 차집합, map(int input().split()) 의미

https://www.acmicpc.net/problem/1269 1269번: 대칭 차집합 첫째 줄에 집합 A의 원소의 개수와 집합 B의 원소의 개수가 빈 칸을 사이에 두고 주어진다. 둘째 줄에는 집합 A의 모든 원소가, 셋째 줄에는 집합 B의 모든 원소가 빈 칸을 사이에 두고 각각 주어 www.acmicpc.net 문제 자연수를 원소로 갖는 공집합이 아닌 두 집합 A와 B가 있다. 이때, 두 집합의 대칭 차집합의 원소의 개수를 출력하는 프로그램을 작성하시오. 두 집합 A와 B가 있을 때, (A-B)와 (B-A)의 합집합을 A와 B의 대칭 차집합이라고 한다. 예를 들어, A = { 1, 2, 4 } 이고, B = { 2, 3, 4, 5, 6 } 라고 할 때, A-B = { 1 } 이고, B-A = { 3..

Programming

[Python] "혼자 공부하는 파이썬" 정리 ② (함수, 튜플, 람다)

본 포스팅은 혼자 공부하는 파이썬 교재를 보고 정리한 내용입니다. https://www.hanbit.co.kr/store/books/look.php?p_code=B1681646737 혼자 공부하는파이썬(개정판) - 파이썬 입문 베스트셀러 프로그래밍을 처음 시작한다면, 단순한 문법 암기와 코딩 따라하기에 지쳤다면, 새로운 혼공파와 함께 프로그래밍의 신세계를 경험해 보세요! 유튜브 무료 동영상 강의 제공 + 161개의 손코딩 예 www.hanbit.co.kr 📝목차 1. 범위 2. 문자열, 리스트, 딕셔너리와 관련된 기본 함수 3. 튜플 4. 람다 1. 범위 리스트, 딕셔너리 외에 for 반복문과 함께 많이 사용되는 '범위자료형'이 있다. 특정한 횟수만큼 반복해서 돌리고 싶을 때 for 반복문과 범위를 조합..

Programming

[Python] "혼자 공부하는 파이썬" 정리 ① (리스트, 딕셔너리, 기본구문)

본 포스팅은 혼자 공부하는 파이썬 교재를 보고 정리한 내용입니다. https://www.hanbit.co.kr/store/books/look.php?p_code=B1681646737 혼자 공부하는파이썬(개정판) - 파이썬 입문 베스트셀러 프로그래밍을 처음 시작한다면, 단순한 문법 암기와 코딩 따라하기에 지쳤다면, 새로운 혼공파와 함께 프로그래밍의 신세계를 경험해 보세요! 유튜브 무료 동영상 강의 제공 + 161개의 손코딩 예 www.hanbit.co.kr 🤗들어가기 전🤗 첫 프로그래밍 언어로 C를 배우고 난 뒤, STL 매력에 푹 빠져 C++만 계속해서 공부했다. (잠시 JAVA도 배웠지만 너무나 어려운 자바...) 파이썬은 과제 있을 때만 구글링해서 하고 따로 공부한 적은 없다. 구글링 엄청했는데도 아..

Programming/Pandas

[Pandas] 데이터 정렬(sort_values, sort_index)

🔉 빅데이터 분석을 편리하게 해주는 파이썬 라이브러리인 Pandas에 대해 공부해보자! https://pandas.pydata.org/ pandas - Python Data Analysis Library pandas pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language. Install pandas now! pandas.pydata.org 📝목차 1. sort_values() 2. sort_index() 먼저 사용할 데이터 선언 import pandas as pd # list를 이용해서 데이터 ..

Programming/Pandas

[Pandas] 조건에 맞는 데이터 추출

🔉 빅데이터 분석을 편리하게 해주는 파이썬 라이브러리인 Pandas에 대해 공부해보자! https://pandas.pydata.org/ pandas - Python Data Analysis Library pandas pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language. Install pandas now! pandas.pydata.org Dataframe에서 특정 조건에 맞는 데이터를 추출하고자 한다. 데이터는 저번 시간에 사용한 부산 50세 이상 인구수를 이용했다. import pandas ..

Programming/Pandas

[Pandas] 원하는 위치의 데이터 추출(loc, iloc)

🔉 빅데이터 분석을 편리하게 해주는 파이썬 라이브러리인 Pandas에 대해 공부해보자! https://pandas.pydata.org/ pandas - Python Data Analysis Library pandas pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language. Install pandas now! pandas.pydata.org 📝목차 1. loc를 활용한 데이터 추출 2. iloc를 활용한 데이터 추출 ※ !! loc와 iloc의 차이는 loc는 '변수명'을 기준으로 데이터프레임을 ..

Programming/KNINE

[KNIME] 제3회 CDS 빅데이터 경진대회 문제풀이

* 본 포스팅은 1월 27일 제3회 CDS 빅데이터 경진대회에서 푼 문제에 대한 내용입니다. 스스로 생각하고 푼 것이라 틀린 부분이 많을수도 있다는 점 양해 부탁드립니다. 전처리 과정 건물별 발전량 데이터와(cds2_data.csv) 건물정보(cds2_building_metadata.csv)를 user_id 기준으로 결합 1.번 데이터와 날씨 데이터(cds2_weather.csv)를 datetime과 region_id 기준으로 결합 Missing Value를 이용해서 construct_year과 num_floors를 mean값으로 바꿈 (mean값으로 한 이유 : 발전량을 예측하는 데 있어 별 의미 없는 변수라고 생각해서 mean값 사용, 결론적으로 Backward Feature Elimination에서..

Programming/Pandas

[Pandas] 시리즈(Series) 기초

🔉 빅데이터 분석을 편리하게 해주는 파이썬 라이브러리인 Pandas에 대해 공부해보자! https://pandas.pydata.org/ pandas - Python Data Analysis Library pandas pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language. Install pandas now! pandas.pydata.org 시리즈(Series) ☑️소개 시리즈는 인덱스가 있는 1차원 배열이며, 데이터프레임 각 열이 시리즈이다. 즉, 데이터프레임은 시리즈들이 모여서 형성한다고 할 ..

JongHo.dev
'Programming' 카테고리의 글 목록 (2 Page)