πŸ“Š[DataCamp] Conditional statement : if, elif, else / Filtering pandas DataFrames / while loop / Loop Data Structures

2020. 9. 2. 00:34ㆍLearning archive/Data Science

πŸ“Œ Overview 

 

 

 

 

 

 

 

πŸ“Œ if more customized behavior is necessary, use elif 

πŸ“Œ Filtering pandas DataFrames 

 

 

#1. Get column 

 

 

 

#2. 

 

#3.

 

 

πŸ“Œ Boolean operators 

 

Practice 

 

 

Cars per capita(1) 

 

cars per capita (2) 

λ‹€μ‹œ 이해 

 

 

 

 

 

πŸ“Œ while loop : execute statement repeatedly 

 

error λ³€μˆ˜κ°€ 계속 μ΄ˆκΈ°ν™”λ˜λŠ” , μ—…λ°μ΄νŠΈ λ˜λŠ” 경우 updated 

 

πŸ“Œ for loop 

use for loops 

 

practice 

 

 

 

 

dictionary needs METHOD, numpy array needs Function

 

 

πŸ“ŒLoop data structures part2 

효율이 λ–¨μ–΄μ§€λŠ” 방식. 

 

 

πŸ“ŒRandom Walk 

μž„μ˜μ˜ λ°©ν–₯으둜 μ›€μ§μ΄λŠ” 연속적인 κ°’ 

 

 

random but not random walk
how often the tail was thrown