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
hi, you can try : const dateColumn = df.column('dateColumn').$data;
Hi @jaydeep-work, thank you for posting your workaround! I am currently converting the dates to strings before adding them to the DF, but both of these workarounds are less desirable than danfo being able to handle Date objects in the first place.
Describe the bug
When trying to access a column that is populated with Date objects, the following error is thrown
To Reproduce
Steps to reproduce the behavior:
This is a result of the data not passing any of the conditionals in the NDframe constructor
My suggestion is to update either of these conditions to include a check for Date objects:
https://github.com/javascriptdata/danfojs/blob/dev/src/danfojs-base/core/generic.ts#L79
https://github.com/javascriptdata/danfojs/blob/dev/src/danfojs-base/core/generic.ts#L83
Expected behavior
The column should be returned correctly without error
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: