Skip to content

Commit f9b49c8

Browse files
authored
used f-string (#32133)
1 parent 80387ae commit f9b49c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/user_guide/io.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3815,7 +3815,7 @@ The right-hand side of the sub-expression (after a comparison operator) can be:
38153815
.. code-block:: ipython
38163816
38173817
string = "HolyMoly'"
3818-
store.select('df', 'index == %s' % string)
3818+
store.select('df', f'index == {string}')
38193819
38203820
The latter will **not** work and will raise a ``SyntaxError``.Note that
38213821
there's a single quote followed by a double quote in the ``string``

0 commit comments

Comments
 (0)