We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e3699 commit 27c9fbeCopy full SHA for 27c9fbe
UTILS/dfextensions/AliasDataFrame.py
@@ -76,6 +76,11 @@ class AliasDataFrame:
76
on top of a pandas DataFrame, including nested subframes with hierarchical indexing.
77
"""
78
def __init__(self, df):
79
+ if not isinstance(df, pd.DataFrame):
80
+ raise TypeError(
81
+ f"AliasDataFrame must be initialized with a pandas.DataFrame. "
82
+ f"Received type: {type(df)}"
83
+ )
84
self.df = df
85
self.aliases = {}
86
self.alias_dtypes = {}
0 commit comments