소개

R 사용자용 Python

Daniel Chen

Instructor

기초

  • 변수
  • 할당
  • 문자열
  • 리스트
  • 딕셔너리
R 사용자용 Python

프로그래밍 기초

  • 제어 흐름 (if문)
  • 반복문
  • 함수
R 사용자용 Python

Pandas

  • 데이터 선택 및 서브셋
  • 데이터 타입
  • 데이터 조작 및 처리 기법
R 사용자용 Python

시각화

  • pandas
  • matplotlib
  • seaborn
R 사용자용 Python

종합 정리

  • NYC Flights 2013 데이터셋
  • 항공기
  • 항공편 지연
R 사용자용 Python

Python 데이터 타입

R
  • numeric: 정수, 부동소수점 수
  • logical: TRUE 또는 FALSE
  • character: 문자열
Python
  • int: 정수
  • float: 부동소수점 수
  • bool: True 또는 False
  • str: 문자열
R 사용자용 Python

할당

R
x <- 3

y = 0.5

z <- TRUE
Python
x = 3

y = 0.5

z = True
R 사용자용 Python

출력문

R
print('R is awesome!')
"R is awesome!"
Python
print('Python too!')
Python too!
R 사용자용 Python

데이터 타입 확인

R
x <- 3

class(x)
"numeric"
Python
x = 3

type(x)
int
y = 0.5

type(y)
float
R 사용자용 Python
R
1 + 1
2
'1' + '1'
Error in "1" + "1" : non-numeric argument to binary operator
'1' * 5
Error in "1" * 5 : non-numeric argument to binary operator
'1' '1'
Error: unexpected string constant in "'1' '1'"
R 사용자용 Python
Python
1 + 1
2
'1' + '1'
'11'
'1' * 5
'11111'
'1' '1'
'11'
R 사용자용 Python

연습해 봅시다!

R 사용자용 Python

Preparing Video For Download...