30
30
31
31
32
32
def _get_session_from_role (role : str , region : str ) -> Session :
33
- """Method use to get the :class:~`sagemaker.session.Session` from a role and a region.
33
+ """Method use to get the " :class:~`sagemaker.session.Session`" from a role and a region.
34
34
35
35
Helpful in case it's invoke from a session with a role without permission it can assume
36
36
another role temporarily to perform certain taks.
@@ -89,8 +89,7 @@ def get_feature_group_as_dataframe(
89
89
verbose : bool = True ,
90
90
** pandas_read_csv_kwargs ,
91
91
) -> DataFrame :
92
- """Get a :class:~`sagemaker.feature_store.feature_group.FeatureGroup`
93
- as a pandas.DataFrame
92
+ """Get a ":class:~`sagemaker.feature_store.feature_group.FeatureGroup`" as a pandas.DataFrame
94
93
95
94
Description:
96
95
Method to run an athena query over a Feature Group in a Feature Store
@@ -108,7 +107,7 @@ def get_feature_group_as_dataframe(
108
107
'SELECT * FROM "sagemaker_featurestore"."#{table}"'
109
108
athena_bucket (str): Amazon S3 bucket for running the query
110
109
role (str): role of the account used to extract data from feature store
111
- session (str): :class:~`sagemaker.session.Session`
110
+ session (str): " :class:" ~`sagemaker.session.Session`"
112
111
of SageMaker used to work with the feature store
113
112
event_time_feature_name (str): eventTimeId feature. Mandatory only if the
114
113
latest ingestion is True
@@ -175,8 +174,7 @@ def get_feature_group_as_dataframe(
175
174
176
175
177
176
def _format_column_names (data : pandas .DataFrame ) -> pandas .DataFrame :
178
- """Formats the column names in a valid way for
179
- :class:~`sagemaker.feature_store.feature_group.FeatureGroup`
177
+ """Formats the column names in a valid way for ":class:~`sagemaker.feature_store.feature_group.FeatureGroup`"
180
178
181
179
Module to format correctly the name of the columns of a DataFrame
182
180
to later generate the features names of a Feature Group
@@ -220,7 +218,7 @@ def prepare_fg_from_dataframe_or_file(
220
218
** pandas_read_csv_kwargs ,
221
219
) -> FeatureGroup :
222
220
"""Module to prepare a dataframe before creating a
223
- :class:~`sagemaker.feature_store.feature_group.FeatureGroup`
221
+ " :class:" ~`sagemaker.feature_store.feature_group.FeatureGroup`"
224
222
225
223
Function to prepare a dataframe for creating a Feature Group from a pandas.DataFrame
226
224
or a path to a file with proper dtypes, feature names and mandatory features (record_id,
@@ -244,8 +242,8 @@ def prepare_fg_from_dataframe_or_file(
244
242
session (str): session of SageMaker used to work with the feature store
245
243
246
244
Returns:
247
- :class:~`sagemaker.feature_store.feature_group.FeatureGroup`:
248
- FG prepared with all the methods and definitions properly defined
245
+ " :class:" ~`sagemaker.feature_store.feature_group.FeatureGroup`": FG prepared with all
246
+ the methods and definitions properly defined
249
247
"""
250
248
251
249
logger .setLevel (logging .WARNING )
0 commit comments