MCPcopy Create free account
hub / github.com/GeWu-Lab/AnyTouch2 / load_label_from_csv

Function load_label_from_csv

utils.py:58–60  ·  view source on GitHub ↗

Load a csv file with pandas

(path: str)

Source from the content-addressed store, hash-verified

56 return get_rank() == 0
57
58def load_label_from_csv(path: str):
59 """Load a csv file with pandas"""
60 return pd.read_csv(path, index_col=0, header=0, sep=",")
61
62def get_entry_or(cfg, key, default):
63 if key in cfg:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected