TypeError: unsupported operand type(s) for <<: ‘str‘ and ‘int‘
TypeError: unsupported operand type(s) for <<: ‘str’ and ‘int’原代码:f = open('data3.csv','r',encoding='utf-8')df = pd.read_csv(f)在open时,后面需要进行close,不然会出错。采用下列方式进行读取:不会出错```pythondf = pd.read_excel
·
TypeError: unsupported operand type(s) for <<: ‘str’ and ‘int’
原代码:
f = open('data3.csv','r',encoding='utf-8')
df = pd.read_csv(f)
在open时,后面需要进行close,不然会出错。
采用下列方式进行读取:不会出错
```python
df = pd.read_excel('fu1.xlsx')
更多推荐
已为社区贡献4条内容
所有评论(0)