@@ -379,15 +379,20 @@ def _to_sql_query(
379
379
whether to include index columns.
380
380
381
381
Returns:
382
- a tuple of ( sql_string, index_column_id_list, index_column_label_list).
382
+ Tuple[ sql_string, index_column_id_list, index_column_label_list]:
383
383
If include_index is set to False, index_column_id_list and index_column_label_list
384
384
return empty lists.
385
385
"""
386
386
return self ._block .to_sql_query (include_index , enable_cache = enable_cache )
387
387
388
388
@property
389
389
def sql (self ) -> str :
390
- """Compiles this DataFrame's expression tree to SQL."""
390
+ """Compiles this DataFrame's expression tree to SQL.
391
+
392
+ Returns:
393
+ str:
394
+ string representing the compiled SQL.
395
+ """
391
396
include_index = self ._has_index and (
392
397
self .index .name is not None or len (self .index .names ) > 1
393
398
)
@@ -399,8 +404,9 @@ def query_job(self) -> Optional[bigquery.QueryJob]:
399
404
"""BigQuery job metadata for the most recent query.
400
405
401
406
Returns:
402
- The most recent `QueryJob
403
- <https://cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.job.QueryJob>`_.
407
+ None or google.cloud.bigquery.QueryJob:
408
+ The most recent `QueryJob
409
+ <https://cloud.google.com/python/docs/reference/bigquery/latest/google.cloud.bigquery.job.QueryJob>`_.
404
410
"""
405
411
if self ._query_job is None :
406
412
self ._set_internal_query_job (self ._compute_dry_run ())
@@ -3763,7 +3769,7 @@ def cache(self):
3763
3769
Useful if the dataframe will be used multiple times, as this will avoid recomputating the shared intermediate value.
3764
3770
3765
3771
Returns:
3766
- DataFrame: Self
3772
+ bigframes.pandas. DataFrame: DataFrame
3767
3773
"""
3768
3774
return self ._cached (force = True )
3769
3775
0 commit comments