def as_dataframe(self, env: Environment, sess: Session): schema = None if self.schema: schema = env.get_schema(self.schema, sess) return str_as_dataframe(self.data, module=self.module, nominal_schema=schema)
def as_dataframe(self, env: Environment): schema = None if self.schema: schema = env.get_schema(self.schema) return str_as_dataframe(env, self.data, package=self.package, nominal_schema=schema)
def get_translation_to(self, env: Environment, sess: Session, other: Schema) -> Optional[SchemaTranslation]: if not self.implementations: return None for impl in self.implementations: schema = env.get_schema(impl.schema_key, sess) if schema.key == other.key: return impl.as_schema_translation(env, sess, other) return None
def schema(self, env: Environment, sess: Session) -> Schema: return env.get_schema(self.schema_key, sess)