From a81c05d2350de2fb6931ee40fc540580db366bf9 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 14 Jun 2021 20:47:34 -0700 Subject: [PATCH] Clarify types that can be passed to .transform() --- docs/python-api.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/python-api.rst b/docs/python-api.rst index 725445c..45dac23 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -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