MCPcopy Create free account
hub / github.com/streamlit/streamlit / CustomDataframe

Class CustomDataframe

lib/tests/streamlit/data_test_cases.py:112–121  ·  view source on GitHub ↗

A dummy dataframe-like class that supports the dataframe interchange protocol (__dataframe__ method).

Source from the content-addressed store, hash-verified

110
111
112class CustomDataframe:
113 """A dummy dataframe-like class that supports the dataframe interchange protocol
114 (__dataframe__ method).
115 """
116
117 def __init__(self, data: pd.DataFrame):
118 self._data: pd.DataFrame = data
119
120 def __dataframe__(self, allow_copy: bool = True):
121 return self._data.__dataframe__(allow_copy=allow_copy)
122
123
124class StrTestEnum(str, enum.Enum):

Callers 1

data_test_cases.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…