You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please excuse me in advance if I inadequately describe the question I have.
I'm trying to load a dataset using numpy, using something like
dataset = np.loadtxt(dataPath, delimiter=',')
The problem here is that I seem to not be able to specify the delimiter like this in the function.
The same problem arises when I use the pd.DatafFrame method like this:
pd.DataFrame(data, columns=["prices"])
Here I cannot specify in the function call 'columns = ["prices"] because it gives the error "Invalid call to 'call': unexpected keyword argument: 'columns'"
Is there any way to specify an optional variable in a function you are calling like this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Please excuse me in advance if I inadequately describe the question I have.
I'm trying to load a dataset using numpy, using something like
dataset = np.loadtxt(dataPath, delimiter=',')
The problem here is that I seem to not be able to specify the delimiter like this in the function.
The same problem arises when I use the pd.DatafFrame method like this:
pd.DataFrame(data, columns=["prices"])
Here I cannot specify in the function call 'columns = ["prices"] because it gives the error "Invalid call to 'call': unexpected keyword argument: 'columns'"
Is there any way to specify an optional variable in a function you are calling like this?
Beta Was this translation helpful? Give feedback.
All reactions