MCPcopy Create free account
hub / github.com/apple/ml-streambridge / load_csv

Function load_csv

streambridge/utils.py:346–354  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

344 return data
345
346def load_csv(path):
347 file_list = []
348 data = pd.read_csv(path)
349 columns = data.columns.tolist()
350 for index, row in data.iterrows():
351 file_list.append({})
352 for column in columns:
353 file_list[index][column] = row[column]
354 return file_list

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected