MCPcopy
hub / github.com/feast-dev/feast / to_arrow

Method to_arrow

sdk/python/feast/online_response.py:100–109  ·  view source on GitHub ↗

Converts GetOnlineFeaturesResponse features into pyarrow Table. Args: include_event_timestamps: bool Optionally include feature timestamps in the table

(self, include_event_timestamps: bool = False)

Source from the content-addressed store, hash-verified

98 return pd.DataFrame(self.to_dict(include_event_timestamps))
99
100 def to_arrow(self, include_event_timestamps: bool = False) -> pa.Table:
101 """
102 Converts GetOnlineFeaturesResponse features into pyarrow Table.
103
104 Args:
105 include_event_timestamps: bool Optionally include feature timestamps in the table
106 """
107 result = self.to_dict(include_event_timestamps)
108 result = _convert_uuids_for_arrow(result)
109 return pa.Table.from_pydict(result)
110
111 def to_tensor(
112 self,

Calls 2

to_dictMethod · 0.95
_convert_uuids_for_arrowFunction · 0.85

Tested by

no test coverage detected