Skip to content

Commit 56e035c

Browse files
committed
Fixed SQL/Pandas examples (fix #245)
1 parent 096854f commit 56e035c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/table_pandas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def skip_under_30(erows):
1414

1515
# Export to pandas
1616
table = Table(SOURCE, post_convert=[skip_under_30])
17-
storage = table.save('persons', backend='pandas')
17+
storage = table.save('persons', storage='pandas')
1818
pprint(storage['persons'])
1919
# Will print (if use skip_under_30 filter)
2020
# id age name

examples/table_sql.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212
# Open from WEB save to SQL database
1313
table = Table(SOURCE, schema=SCHEMA)
14-
table.save('articles', backend='sql', engine=db)
14+
table.save('articles', storage='sql', engine=db)
1515

1616
# Open from SQL save to DRIVE
17-
table = Table('articles', backend='sql', engine=db)
17+
table = Table('articles', storage='sql', engine=db)
18+
table.infer()
1819
table.schema.save('tmp/articles.json')
1920
table.save('tmp/articles.csv')
2021

0 commit comments

Comments
 (0)