pyRasgo Methods

Return a Class Object

feature = rasgo.get.feature(id)

Class Methods

  • add_attributes(attributes: List[dict]): Adds free-form key-value pairs to a Feature as attributes

  • add_tag(tag: str): Adds a free-form text tag to a Feature

  • add_tags(tags: List[str]): Adds free-form text tags to a Feature

  • build_stats(): Triggers a refresh of Feature profile stats

  • delete_tag(tag: str): Deletes a text tag from a Feature

  • delete_tags(tags: List[str]): Deletes text tags from a Feature

  • get_stats(): Retrieves the most recent profile stats for a Feature

  • productionalize(): Tragically named method that flips a Feature's status from 'Sandbox' to 'Production'

  • read_into_df(): Reads physical data into a pandas DataFrame

  • rename(new_name: str): Renames the Feature's "displayName" property

  • to_dict(): Returns the Feature as a compliant dict (to be used in other functions)

Sample Usage

feature = rasgo.get.feature(id)
print('Current Name', feature.name)
feature.rename('My New Feature Name')
print('New Name', feature.name)
feature = rasgo.get.featureid)
df = feature.read_into_df()
df.head()

Last updated