코딩/빅데이터
TypeError: 'tuple' object is not callable 해결
갬발장
2023. 7. 16. 20:43
아래 코드를 실행하면 TypeError: 'tuple' object is not callable 가 발생했는데 이유는 너무 허무했다.
from google.colab import files
uploaded = files.upload()
import pandas as pd
import io
chipo = pd.read_csv(io.BytesIO(uploaded['chipotle.tsv']), sep='\t')
print(chipo.shape())
shape()가 아니라 shape로 써야 해서...
무엇을 써야하는지 잘 확인하고 쓰도록 하자!!