Why Am I Getting TypeError: 'method' object is not subscriptable in My Pandas Code