File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,10 @@ The most robust and consistent way of slicing ranges along arbitrary axes is
262
262
described in the :ref: `Selection by Position <indexing.integer >` section
263
263
detailing the ``.iloc `` method. For now, we explain the semantics of slicing using the ``[] `` operator.
264
264
265
+ .. note ::
266
+
267
+ When the :class: `Series ` has float indices, slicing will select by position.
268
+
265
269
With Series, the syntax works exactly as with an ndarray, returning a slice of
266
270
the values and the corresponding labels:
267
271
Original file line number Diff line number Diff line change @@ -473,8 +473,9 @@ def read_sql_query(
473
473
--------
474
474
>>> from sqlalchemy import create_engine # doctest: +SKIP
475
475
>>> engine = create_engine("sqlite:///database.db") # doctest: +SKIP
476
+ >>> sql_query = "SELECT int_column FROM test_data" # doctest: +SKIP
476
477
>>> with engine.connect() as conn, conn.begin(): # doctest: +SKIP
477
- ... data = pd.read_sql_table("data" , conn) # doctest: +SKIP
478
+ ... data = pd.read_sql_query(sql_query , conn) # doctest: +SKIP
478
479
"""
479
480
480
481
check_dtype_backend (dtype_backend )
You can’t perform that action at this time.
0 commit comments