@薛定谔の喵-JoinQuant read excel 报错呀,为什么呢?
import pandas as pd
from six import StringIO
df=pd.read_excel(StringIO(read_file('superBull.xlsx')))
-------------------
TypeError Traceback (most recent call last)
< ipython-input-24-6804cce269a0> in < module>
2 import pandas as pd
3 from six import StringIO
----> 4 df=pd.read_excel(StringIO(read_file('superBull.xlsx')))
TypeError: initial_value must be str or None, not bytes
read excel 报错呀,为什么呢?
import pandas as pd
from six import StringIO
df=pd.read_excel(StringIO(read_file('superBull.xlsx')))
-------------------
TypeError Traceback (most recent call last)
< ipython-input-24-6804cce269a0> in < module>
2 import pandas as pd
3 from six import StringIO
----> 4 df=pd.read_excel(StringIO(read_file('superBull.xlsx')))
TypeError: initial_value must be str or None, not bytes