MCPcopy Create free account
hub / github.com/pytorch/executorch / to_dataframe

Method to_dataframe

devtools/inspector/_inspector.py:384–395  ·  view source on GitHub ↗

Convert the Event into a pandas DataFrame Args: None Returns: A pandas DataFrame with the Event data

(self, _units="")

Source from the content-addressed store, hash-verified

382 return self._start_time
383
384 def to_dataframe(self, _units="") -> pd.DataFrame:
385 """
386 Convert the Event into a pandas DataFrame
387
388 Args:
389 None
390
391 Returns:
392 A pandas DataFrame with the Event data
393 """
394 event_dict = self.asdict(_units=_units)
395 return pd.DataFrame(event_dict)
396
397 # Override the default implementation of dataclass.asdict to handle null perf data
398 def asdict(self, _units="") -> dict:

Callers 3

to_dataframeMethod · 0.45
to_dataframeMethod · 0.45

Calls 1

asdictMethod · 0.95

Tested by

no test coverage detected