@@ -637,17 +637,19 @@ def _dtype_from_string(dtype_string: str) -> typing.Optional[Dtype]:
637637 return BIGFRAMES_STRING_TO_BIGFRAMES [
638638 typing .cast (DtypeString , str (dtype_string ))
639639 ]
640+ if isinstance (dtype_string , str ) and dtype_string .lower () == "json" :
641+ return JSON_DTYPE
640642 raise TypeError (
641643 textwrap .dedent (
642644 f"""
643- Unexpected data type string { dtype_string } . The following
645+ Unexpected data type string ` { dtype_string } ` . The following
644646 dtypes are supppted: 'boolean','Float64','Int64',
645- 'int64[pyarrow]','string','string[pyarrow]',
647+ 'int64[pyarrow]','string','string[pyarrow]','json',
646648 'timestamp[us, tz=UTC][pyarrow]','timestamp[us][pyarrow]',
647649 'date32[day][pyarrow]','time64[us][pyarrow]'.
648- The following pandas. ExtensionDtype are supported:
649- pandas .BooleanDtype(), pandas .Float64Dtype(),
650- pandas .Int64Dtype(), pandas .StringDtype(storage="pyarrow"),
650+ The following pandas ` ExtensionDtype` are supported:
651+ pd .BooleanDtype(), pd .Float64Dtype(),
652+ pd .Int64Dtype(), pd .StringDtype(storage="pyarrow"),
651653 pd.ArrowDtype(pa.date32()), pd.ArrowDtype(pa.time64("us")),
652654 pd.ArrowDtype(pa.timestamp("us")),
653655 pd.ArrowDtype(pa.timestamp("us", tz="UTC")).
0 commit comments