I am trying to read the IMF statistics into a pandas dataframe:
import pandas as pd
df = pd.read_table("http://www.imf.org/external/pubs/ft/weo/2013/02/weodata/WEOOct2013all.xls",
na_values=['n/a','--'],thousands=',')
All the columns, except one, have dtype object:
In [5]: df
Out[5]:
<class 'pandas.core.frame.DataFrame'>
Int64Index: 8318 entries, 0 to 8317
Data columns (total 49 columns):
...
dtypes: float64(1), object(48)
I manually inspected the file and could not find any value which is not a numeric one, or one of the NaN values explicitly mentioned in the code, in most columns.
I am using Python 2.7.5, numpy 1.7.1, pandas 0.11.0 on Anaconda 1.5.0 on Wakari.io.