mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
Clarify types that can be passed to .transform()
This commit is contained in:
parent
10f4913c14
commit
a81c05d235
1 changed files with 2 additions and 0 deletions
|
|
@ -1078,6 +1078,8 @@ To alter the type of a column, use the ``types=`` argument:
|
|||
# Convert the 'age' column to an integer, and 'weight' to a float
|
||||
table.transform(types={"age": int, "weight": float})
|
||||
|
||||
See :ref:`python_api_add_column` for a list of available types.
|
||||
|
||||
The ``rename=`` parameter can rename columns:
|
||||
|
||||
.. code-block:: python
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue