pandaspgs.release.Release

An object that stores data of type Release. To understand the significance of each column of the DataFrame. Please visit "Release" in PGS Catalog Documentation for details.

Attributes:
  • raw_data

    list. Convert from obtained JSON data

  • releases

    DataFrame. It only exists if the parameter mode of constructor is Fat.

  • released_performance_ids

    DataFrame. It only exists if the parameter mode of constructor is Fat.

  • released_publication_ids

    DataFrame. It only exists if the parameter mode of constructor is Fat.

  • released_score_ids

    DataFrame. It only exists if the parameter mode of constructor is Fat.

  • released_new_trait_ids

    DataFrame. It only exists if the parameter mode of constructor is Fat.

  • mode

    Fat or Thin. Specifies the mode of the returned object.

from pandaspgs.get_release import get_releases

ch = get_releases(date="2024-01-26")
ch
ch.raw_data
ch.mode
ch.releases
ch.released_performance_ids
ch.released_publication_ids
ch.released_score_ids
ch.released_new_trait_ids

Subset object s by either identifier or position

all_df = get_releases()
all_df[0].releases
all_df[0:3].releases
all_df['2024-01-26'].releases
all_df[('2024-01-26','2024-01-11','2023-12-19')].releases

Objects can be manipulated like sets in the mathematical sense.

one = get_releases(date='2024-01-26')
two = get_releases(date='2024-01-11')
three = get_releases(date='2023-12-19')
one_and_two = one+two
two_and_three = two+three
only_one = one_and_two - two_and_three
only_two = one_and_two & two_and_three
one_and_two_and_three = one_and_two | two_and_three
one_and_three = one_and_two ^ two_and_three

__init__

__init__(data: list = [], mode: str = 'Fat')
Parameters:
  • data (list, default: [] ) –

    Raw JSON data.

  • mode (str, default: 'Fat' ) –

    Fat or Thin. Specifies the mode of the object.