Merge pull request #385 from ammgws/patch-1

docs: fix broken examples for `find`
This commit is contained in:
Friedrich Lindenberg 2021-10-29 13:49:21 +02:00 committed by GitHub
commit 63c8357d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,8 +142,8 @@ We can search for specific entries using :py:meth:`find() <dataset.Table.find>`
winners = table.find(id=[1, 3, 7]) winners = table.find(id=[1, 3, 7])
# Find by comparison operator # Find by comparison operator
elderly_users = table.find((age, '>=', 70)) elderly_users = table.find(age={'>=': 70})
possible_customers = table.find((age, 'between', [21, 80])) possible_customers = table.find(age={'between': [21, 80]})
# Use the underlying SQLAlchemy directly # Use the underlying SQLAlchemy directly
elderly_users = table.find(table.table.columns.age >= 70) elderly_users = table.find(table.table.columns.age >= 70)