Pythonでのデータベースエンジン作成

Python でのデータインポート入門

Hugo Bowne-Anderson

Data Scientist at DataCamp

データベースエンジンの作成

  • SQLiteデータベース
    • 高速かつシンプル
  • SQLAlchemy
    • 多くのリレーショナルデータベース管理システムで動作可能
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...