@classmethod
def from_dendropy(cls, tree, config={}, **kwargs):
    """Read from DendroPy Tree."""
    try:
        import phylopandas as pd
        df = pd.read_dendropy(tree)
        data = df.to_dict(orient='records')
        return cls(data=data, config={}, **kwargs)
    except ImportError:
        Exception('DendroPy and Phylopandas must be installed.')
