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
I am trying to use read_fwf to read in a fixed with text data file. I am hoping to use the dtype argument, which only works with the 'c' engine parser. I tried something like the following:
I received an error that the dtype option is not supported with the 'python-fwf' engine. As I understand, in the API docs, it says the c engine is necessary for the dtype argument. Is there no 'c' engine for read_fwf at the current moment, is is something else going on? I am using Pandas 14.1, python 3.4 as part of the Ancacondas distribution.
The text was updated successfully, but these errors were encountered:
I am trying to use read_fwf to read in a fixed with text data file. I am hoping to use the dtype argument, which only works with the 'c' engine parser. I tried something like the following:
df = pd.read_fwf(dpath,widths=widths,header=0,skiprows=[0,2,3],thousands=',',engine='c',dtype={'cusip':str})
I received an error that the dtype option is not supported with the 'python-fwf' engine. As I understand, in the API docs, it says the c engine is necessary for the dtype argument. Is there no 'c' engine for read_fwf at the current moment, is is something else going on? I am using Pandas 14.1, python 3.4 as part of the Ancacondas distribution.
The text was updated successfully, but these errors were encountered: