Crearea unui motor de baze de date în Python

Introducere în importul datelor în Python

Hugo Bowne-Anderson

Data Scientist at DataCamp

Crearea unui motor de baze de date

  • Baza de date SQLite
    • Rapidă și simplă
  • SQLAlchemy
    • Compatibil cu multe Sisteme de Gestionare a Bazelor de Date Relaționale
from sqlalchemy import create_engine
engine = create_engine('sqlite:///Northwind.sqlite')
Introducere în importul datelor în Python

Obținerea numelor tabelelor

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']
Introducere în importul datelor în Python

Să exersăm!

Introducere în importul datelor în Python

Preparing Video For Download...