bigframes.bigquery.to_json_string#
- bigframes.bigquery.to_json_string(input: Series) Series[source]#
Converts a series to a JSON-formatted STRING value.
Examples:
>>> import bigframes.pandas as bpd >>> import bigframes.bigquery as bbq
>>> s = bpd.Series([1, 2, 3]) >>> bbq.to_json_string(s) 0 1 1 2 2 3 dtype: string
>>> s = bpd.Series([{"int": 1, "str": "pandas"}, {"int": 2, "str": "numpy"}]) >>> bbq.to_json_string(s) 0 {"int":1,"str":"pandas"} 1 {"int":2,"str":"numpy"} dtype: string
- Parameters:
input (bigframes.series.Series) – The Series to be converted.
- Returns:
A new Series with the JSON-formatted STRING value.
- Return type: