File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
bigframes/bigquery/_operations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -206,13 +206,13 @@ def generate_double(
206206 >>> import bigframes.bigquery as bbq
207207 >>> bpd.options.display.progress_bar = None
208208 >>> animal = bpd.Series(["Kangaroo", "Rabbit", "Spider"])
209- >>> bbq.ai.generate_int (("How many legs does a ", animal, " have?"))
209+ >>> bbq.ai.generate_double (("How many legs does a ", animal, " have?"))
210210 0 {'result': 2.0, 'full_response': '{"candidates...
211211 1 {'result': 4.0, 'full_response': '{"candidates...
212212 2 {'result': 8.0, 'full_response': '{"candidates...
213213 dtype: struct<result: double, full_response: extension<dbjson<JSONArrowType>>, status: string>[pyarrow]
214214
215- >>> bbq.ai.generate_int (("How many legs does a ", animal, " have?")).struct.field("result")
215+ >>> bbq.ai.generate_double (("How many legs does a ", animal, " have?")).struct.field("result")
216216 0 2.0
217217 1 4.0
218218 2 8.0
You can’t perform that action at this time.
0 commit comments