0

I have a working script on one system (python2.7, pandas 16), but when I moved it to a different system with python2.7 and pandas 17, the following line --

 df["DATE"] = df["DATE"].map(lambda x: pd.datetools.parse(x))

generates the following error

AttributeError: 'module' object has no attribute 'parse'

I tried to remove pandas17 and load 16 but the whl file -- pandas.0.16.2-cp27-none-win32.whl -- "is not a supported wheel on this platform"

It looks like a versioning issue. Anything else I can try?

Thanks

mattrweaver
  • 729
  • 4
  • 14
  • 36

1 Answers1

3

Use to_datetime:

df["DATE"] = pd.to_datetime(df["DATE"])
Andy Hayden
  • 359,921
  • 101
  • 625
  • 535