Introduction

R Kullanıcıları için Python

Daniel Chen

Instructor

The basics

  • Variables
  • Assignment
  • Strings
  • Lists
  • Dictionaries
R Kullanıcıları için Python

Programming fundamentals

  • Control flow (if-statements)
  • loops
  • Functions
R Kullanıcıları için Python

Pandas

  • Selecting and subsetting data
  • Data types
  • Data manipulation and processing techniques
R Kullanıcıları için Python

Plotting

  • pandas
  • matplotlib
  • seaborn
R Kullanıcıları için Python

Putting it all together

  • NYC Flights 2013 Dataset
  • Planes
  • Flight Delays
R Kullanıcıları için Python

Python data types

R
  • numeric: integers, floating point numbers
  • logical: TRUE or FALSE values
  • character: strings
Python
  • int: integers
  • float: floating point numbers
  • bool: True or False values
  • str: strings
R Kullanıcıları için Python

Assignment

R
x <- 3

y = 0.5

z <- TRUE
Python
x = 3

y = 0.5

z = True
R Kullanıcıları için Python

Print statements

R
print('R is awesome!')
"R is awesome!"
Python
print('Python too!')
Python too!
R Kullanıcıları için Python

What's your data type?

R
x <- 3

class(x)
"numeric"
Python
x = 3

type(x)
int
y = 0.5

type(y)
float
R Kullanıcıları için 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 Kullanıcıları için Python
Python
1 + 1
2
'1' + '1'
'11'
'1' * 5
'11111'
'1' '1'
'11'
R Kullanıcıları için Python

Let's practice!

R Kullanıcıları için Python

Preparing Video For Download...