aliyun / alibabacloud-odps-maxframe-client

Apache License 2.0
4 stars 2 forks source link

module 'maxframe.dataframe' has no attribute 'NaT' #47

Closed snowljs closed 1 month ago

snowljs commented 3 months ago
df = md.DataFrame({'age': [5, 6, np.NaN],
                   'born': [md.NaT, md.Timestamp('1939-05-27'),
                             md.Timestamp('1940-04-25')],
                    'name': ['Alfred', 'Batman', ''],
                    'toy': [None, 'Batmobile', 'Joker']})

df.execute()

---
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[1], line 34
     30 # session = new_session(odps_entry=o)
     31 print(session.session_id + "\n---")
     33 df = md.DataFrame({'age': [5, 6, np.NaN],
---> 34                    'born': [md.NaT, md.Timestamp('1939-05-27'),
     35                              md.Timestamp('1940-04-25')],
     36                     'name': ['Alfred', 'Batman', ''],
     37                     'toy': [None, 'Batmobile', 'Joker']})
     39 df.execute()

AttributeError: module 'maxframe.dataframe' has no attribute 'NaT'
---