Clarify types that can be passed to .transform()

This commit is contained in:
Simon Willison 2021-06-14 20:47:34 -07:00 committed by GitHub
commit a81c05d235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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