MCPcopy Create free account
hub / github.com/feast-dev/feast / to_df

Method to_df

sdk/python/feast/online_response.py:90–98  ·  view source on GitHub ↗

Converts GetOnlineFeaturesResponse features into Panda dataframe form. Args: include_event_timestamps: bool Optionally include feature timestamps in the dataframe

(self, include_event_timestamps: bool = False)

Source from the content-addressed store, hash-verified

88 return response
89
90 def to_df(self, include_event_timestamps: bool = False) -> pd.DataFrame:
91 """
92 Converts GetOnlineFeaturesResponse features into Panda dataframe form.
93
94 Args:
95 include_event_timestamps: bool Optionally include feature timestamps in the dataframe
96 """
97
98 return pd.DataFrame(self.to_dict(include_event_timestamps))
99
100 def to_arrow(self, include_event_timestamps: bool = False) -> pa.Table:
101 """

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.95

Tested by

no test coverage detected