GeezerVison is showing github.com — docs: Rename Blob column references to ObjectRef column (#2535) · google/bigframes@44e0ffd
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: bigframes/dataframe.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -817,7 +817,7 @@ def __repr__(self) -> str: | 817 | 817 | ) | 818 | 818 |
| 819 | 819 | def _get_display_df_and_blob_cols(self) -> tuple[DataFrame, list[str]]: | 820 | | - """Process blob columns for display.""" | | 820 | + """Process ObjectRef columns for display.""" | 821 | 821 | df = self | 822 | 822 | blob_cols = [] | 823 | 823 | if bigframes.options.display.blob_display: | |
Collapse file Copy file name to clipboardExpand all lines: bigframes/ml/llm.py +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -286,7 +286,7 @@ class MultimodalEmbeddingGenerator(base.RetriableRemotePredictor): | 286 | 286 | """Multimodal embedding generator LLM model. | 287 | 287 |
| 288 | 288 | .. note:: | 289 | | - BigFrames Blob is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the | | 289 | + BigFrames ObjectRef is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the | 290 | 290 | Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is" | 291 | 291 | and might have limited support. For more information, see the launch stage descriptions | 292 | 292 | (https://cloud.google.com/products#product-launch-stages). | @@ -374,7 +374,7 @@ def predict( | 374 | 374 | Args: | 375 | 375 | X (bigframes.dataframe.DataFrame or bigframes.series.Series or pandas.core.frame.DataFrame or pandas.core.series.Series): | 376 | 376 | Input DataFrame or Series, can contain one or more columns. If multiple columns are in the DataFrame, it must contain a "content" column for prediction. | 377 | | - The content column must be of string type or BigFrames Blob of image or video. | | 377 | + The content column must be of string type or BigFrames `ObjectRef <https://docs.cloud.google.com/bigquery/docs/objectref-columns>`_ of image or video. | 378 | 378 |
| 379 | 379 | max_retries (int, default 0): | 380 | 380 | Max number of retries if the prediction for any rows failed. Each try needs to make progress (i.e. has successfully predicted rows) to continue the retry. | @@ -668,13 +668,13 @@ def predict( | 668 | 668 |
| 669 | 669 | prompt (Iterable of str or bigframes.series.Series, or None, default None): | 670 | 670 | .. note:: | 671 | | - BigFrames Blob is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the | | 671 | + BigFrames ObjectRef is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the | 672 | 672 | Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is" | 673 | 673 | and might have limited support. For more information, see the launch stage descriptions | 674 | 674 | (https://cloud.google.com/products#product-launch-stages). | 675 | 675 |
| 676 | 676 | Construct a prompt struct column for prediction based on the input. The input must be an Iterable that can take string literals, | 677 | | - such as "summarize", string column(s) of X, such as X["str_col"], or blob column(s) of X, such as X["blob_col"]. | | 677 | + such as "summarize", string column(s) of X, such as X["str_col"], or `ObjectRef column(s) <https://docs.cloud.google.com/bigquery/docs/objectref-columns>`_ of X, such as X["objectref_col"]. | 678 | 678 | It creates a struct column of the items of the iterable, and use the concatenated result as the input prompt. No-op if set to None. | 679 | 679 | output_schema (Mapping[str, str] or None, default None): | 680 | 680 | The schema used to generate structured output as a bigframes DataFrame. The schema is a string key-value pair of <column_name>:<type>. | |
Collapse file Copy file name to clipboardExpand all lines: bigframes/operations/ai.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -203,7 +203,7 @@ def map( | 203 | 203 | has_blob_column = False | 204 | 204 | for column in columns: | 205 | 205 | if df[column].dtype == dtypes.OBJ_REF_DTYPE: | 206 | | - # Don't cast blob columns to string | | 206 | + # Don't cast ObjectRef columns to string | 207 | 207 | has_blob_column = True | 208 | 208 | continue | 209 | 209 |
| |
Collapse file Copy file name to clipboardExpand all lines: bigframes/operations/semantics.py +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -382,7 +382,7 @@ def filter(self, instruction: str, model, ground_with_google_search: bool = Fals | 382 | 382 | has_blob_column = False | 383 | 383 | for column in columns: | 384 | 384 | if df[column].dtype == dtypes.OBJ_REF_DTYPE: | 385 | | - # Don't cast blob columns to string | | 385 | + # Don't cast ObjectRef columns to string | 386 | 386 | has_blob_column = True | 387 | 387 | continue | 388 | 388 |
| @@ -501,7 +501,7 @@ def map( | 501 | 501 | has_blob_column = False | 502 | 502 | for column in columns: | 503 | 503 | if df[column].dtype == dtypes.OBJ_REF_DTYPE: | 504 | | - # Don't cast blob columns to string | | 504 | + # Don't cast ObjectRef columns to string | 505 | 505 | has_blob_column = True | 506 | 506 | continue | 507 | 507 |
| |
Collapse file Copy file name to clipboardExpand all lines: bigframes/session/__init__.py +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2234,12 +2234,12 @@ def _create_temp_table( | 2234 | 2234 | def from_glob_path( | 2235 | 2235 | self, path: str, *, connection: Optional[str] = None, name: Optional[str] = None | 2236 | 2236 | ) -> dataframe.DataFrame: | 2237 | | - r"""Create a BigFrames DataFrame that contains a BigFrames Blob column from a global wildcard path. | | 2237 | + r"""Create a BigFrames DataFrame that contains a BigFrames `ObjectRef column <https://docs.cloud.google.com/bigquery/docs/objectref-columns>`_ from a global wildcard path. | 2238 | 2238 | This operation creates a temporary BQ Object Table under the hood and requires bigquery.connections.delegate permission or BigQuery Connection Admin role. | 2239 | 2239 | If you have an existing BQ Object Table, use read_gbq_object_table(). | 2240 | 2240 |
| 2241 | 2241 | .. note:: | 2242 | | - BigFrames Blob is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the | | 2242 | + BigFrames ObjectRef is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the | 2243 | 2243 | Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is" | 2244 | 2244 | and might have limited support. For more information, see the launch stage descriptions | 2245 | 2245 | (https://cloud.google.com/products#product-launch-stages). | @@ -2252,7 +2252,7 @@ def from_glob_path( | 2252 | 2252 | If None, use default connection in session context. BigQuery DataFrame will try to create the connection and attach | 2253 | 2253 | permission if the connection isn't fully set up. | 2254 | 2254 | name (str): | 2255 | | - The column name of the Blob column. | | 2255 | + The column name of the ObjectRef column. | 2256 | 2256 | Returns: | 2257 | 2257 | bigframes.pandas.DataFrame: | 2258 | 2258 | Result BigFrames DataFrame. | @@ -2295,18 +2295,18 @@ def _create_bq_connection( | 2295 | 2295 | def read_gbq_object_table( | 2296 | 2296 | self, object_table: str, *, name: Optional[str] = None | 2297 | 2297 | ) -> dataframe.DataFrame: | 2298 | | - """Read an existing object table to create a BigFrames Blob DataFrame. Use the connection of the object table for the connection of the blob. | | 2298 | + """Read an existing object table to create a BigFrames `ObjectRef <https://docs.cloud.google.com/bigquery/docs/objectref-columns>`_ DataFrame. Use the connection of the object table for the connection of the ObjectRef. | 2299 | 2299 | This function dosen't retrieve the object table data. If you want to read the data, use read_gbq() instead. | 2300 | 2300 |
| 2301 | 2301 | .. note:: | 2302 | | - BigFrames Blob is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the | | 2302 | + BigFrames ObjectRef is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the | 2303 | 2303 | Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available "as is" | 2304 | 2304 | and might have limited support. For more information, see the launch stage descriptions | 2305 | 2305 | (https://cloud.google.com/products#product-launch-stages). | 2306 | 2306 |
| 2307 | 2307 | Args: | 2308 | 2308 | object_table (str): name of the object table of form <PROJECT_ID>.<DATASET_ID>.<TABLE_ID>. | 2309 | | - name (str or None): the returned blob column name. | | 2309 | + name (str or None): the returned ObjectRef column name. | 2310 | 2310 |
| 2311 | 2311 | Returns: | 2312 | 2312 | bigframes.pandas.DataFrame: | |
|