如何解决此类错误 这是我的服务文件
import numpy as np
import pandas as pd
def conv(val, default_val=''):
try:
return (val)
except ValueError:
return default_val
x = pd.read_csv('/Users/gdelvecchio/Desktop/connector/connector.txt', sep=",", header=None, converters={'Struct': conv, '{': conv, '}': conv })
print(x)
这是我的组件
0 1 2
0 Struct{x y z}
1 Struct{a b c}