Add source example files
This commit is contained in:
10
source/pandas/01-pandas-files/02-database-sqlite.py
Normal file
10
source/pandas/01-pandas-files/02-database-sqlite.py
Normal file
@ -0,0 +1,10 @@
|
||||
import sqlite3
|
||||
import pandas as pd
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
connection = sqlite3.connect("../data/people.sqlite")
|
||||
df = pd.read_sql("SELECT * FROM person", connection)
|
||||
connection.close()
|
||||
|
||||
print(df)
|
Reference in New Issue
Block a user