파이썬에서 데이터베이스 엔진 생성

Python에서 데이터 가져오기 입문

Hugo Bowne-Anderson

Data Scientist at DataCamp

데이터베이스 엔진 생성

  • SQLite 데이터베이스
    • 빠르고 간단함
  • SQLAlchemy
    • 다양한 관계형 DBMS와 호환
from sqlalchemy import create_engine
engine = create_engine('sqlite:///Northwind.sqlite')
Python에서 데이터 가져오기 입문

테이블 이름 가져오기

from sqlalchemy import create_engine
engine = create_engine('sqlite:///Northwind.sqlite')
table_names = engine.table_names()
print(table_names)
['Categories', 'Customers', 'EmployeeTerritories',
'Employees', 'Order Details', 'Orders', 'Products',
'Region', 'Shippers', 'Suppliers', 'Territories']
Python에서 데이터 가져오기 입문

연습해 봅시다!

Python에서 데이터 가져오기 입문

Preparing Video For Download...