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)
Пример #2
0
 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)
Пример #3
0
 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
Пример #4
0
 def schema(self, env: Environment, sess: Session) -> Schema:
     return env.get_schema(self.schema_key, sess)