You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
it would be nice to have a __or__ method in the Schema class to concatenate schemas. I cannot create a branch for this in the mean time, but if somebody could, here is an implementation proposal.
class Schema:
def __or__(self, other):
if not isinstance(other, Schema):
raise TypeError(f'{self.__class__.__name__} can only be concatenated with another `Schema`, found {type(other)}.'
concat_columns = self.columns.extend(other.columns)
concat_schemas = Schema(columns=concat_columns)
return concat_schemas
The text was updated successfully, but these errors were encountered:
Hi,
it would be nice to have a
__or__
method in theSchema
class to concatenate schemas. I cannot create a branch for this in the mean time, but if somebody could, here is an implementation proposal.The text was updated successfully, but these errors were encountered: