@@ -105,8 +105,21 @@ def astype(self, dtype):
105105 impossible, a TypeError exception is raised.
106106
107107 Args:
108- dtype (numpy dtype or pandas type):
109- A dtype supported by BigQuery DataFrames
108+ dtype (str or pandas.ExtensionDtype):
109+ A dtype supported by BigQuery DataFrame include ``'boolean'``,
110+ ``'Float64'``, ``'Int64'``, ``'int64\\ [pyarrow\\ ]'``,
111+ ``'string'``, ``'string\\ [pyarrow\\ ]'``,
112+ ``'timestamp\\ [us, tz=UTC\\ ]\\ [pyarrow\\ ]'``,
113+ ``'timestamp\\ [us\\ ]\\ [pyarrow\\ ]'``,
114+ ``'date32\\ [day\\ ]\\ [pyarrow\\ ]'``,
115+ ``'time64\\ [us\\ ]\\ [pyarrow\\ ]'``.
116+ A pandas.ExtensionDtype include ``pandas.BooleanDtype()``,
117+ ``pandas.Float64Dtype()``, ``pandas.Int64Dtype()``,
118+ ``pandas.StringDtype(storage="pyarrow")``,
119+ ``pd.ArrowDtype(pa.date32())``,
120+ ``pd.ArrowDtype(pa.time64("us"))``,
121+ ``pd.ArrowDtype(pa.timestamp("us"))``,
122+ ``pd.ArrowDtype(pa.timestamp("us", tz="UTC"))``.
110123 errors ({'raise', 'null'}, default 'raise'):
111124 Control raising of exceptions on invalid data for provided dtype.
112125 If 'raise', allow exceptions to be raised if any value fails cast
0 commit comments