데이터 엔지니어링 입문
Vincent Vankrunkelsven
Data Engineer, DataCamp

비정형 데이터
Call me Ishmael. Some years ago, never
mind how long precisely, having little or
no money in my purse, and nothing particular
to interest me on shore, I thought ....
플랫 파일
.tsv 또는 .csv
Year,Make,Model,Price
1997,Ford,E350,3000.00
1999,Chevy,"Venture Extended Edition",4900.00
1999,Chevy,"Venture Extended Edition",5000.00
1996,Jeep,Grand Cherokee,4799.00
numberstringbooleannullarrayobject{
"an_object": {
"nested": [
"one",
"two",
"three",
{
"key": "four"
}
]
}
}
import jsonresult = json.loads('{"key_1": "value_1", "key_2":"value_2"}') print(result["key_1"])
value_1
요청

예시
{ "login": "datacamp", "type": "Organization", "created_at": "2013-05-14T13:01:20Z" }
import requestsresponse = requests.get("https://hacker-news.firebaseio.com/v0/item/16222426.json") print(response.json())
{'by': 'neis', 'descendants': 0, 'id': 16222426, 'score': 17, 'time': 1516800333, 'title': .... }
애플리케이션 데이터베이스
분석용 데이터베이스
연결 문자열/URI
postgresql://[user[:password]@][host][:port]
Python에서 사용하기
import sqlalchemy connection_uri = "postgresql://repl:password@localhost:5432/pagila" db_engine = sqlalchemy.create_engine(connection_uri)import pandas as pd pd.read_sql("SELECT * FROM customer", db_engine)
데이터 엔지니어링 입문