I have a pandas datastructure, which I create like this:
test_inputs = pd.read_csv(\"../input/test.csv\", delimiter=\',\')
Its shape
I was facing the same problem. Even the above solutions couldn't fix it. It was some problem with pandas, What I did was I changed the array into a numpy array and then there was no problem.
import pandas as pd
import numpy as np
test_inputs = pd.read_csv("../input/test.csv", delimiter=',')
test_inputs = np.asarray(test_inputs)