Skip to content

Commit 1dc648b

Browse files
committed
add from_frame
1 parent d8ab16b commit 1dc648b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bigframes/core/indexes/multi.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ def from_arrays(self, *args, **kwargs) -> MultiIndex:
100100
"""
101101
return MultiIndex.from_arrays(*args, session=self._session, **kwargs)
102102

103+
def from_frame(self, *args, **kwargs) -> MultiIndex:
104+
"""Construct a MultiIndex using the associated Session.
105+
106+
See :func:`bigframes.pandas.MultiIndex.from_frame`.
107+
"""
108+
return cast(MultiIndex, MultiIndex.from_frame(*args, **kwargs))
109+
103110
def from_tuples(self, *args, **kwargs) -> MultiIndex:
104111
"""Construct a MultiIndex using the associated Session.
105112

0 commit comments

Comments
 (0)