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
{{ message }}
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
DataProfiler evaluator should be serializable when calling gov.export('path/to/json/file')
Actual Behavior
Throws an error TypeError: Object of type datetime is not JSON serializable
DataProfiler uses PandasProfiler. Under the hood, PandasProfiler contains start time/end time data for when the profiling is performed. When calling get_description(), these are stored as DateTime objects which are apparently not trivially serializable by JSON.
Expected Behavior
DataProfiler evaluator should be serializable when calling
gov.export('path/to/json/file')
Actual Behavior
Throws an error
TypeError: Object of type datetime is not JSON serializable
DataProfiler uses PandasProfiler. Under the hood, PandasProfiler contains start time/end time data for when the profiling is performed. When calling
get_description()
, these are stored as DateTime objects which are apparently not trivially serializable by JSON.Proposed fix: https://stackoverflow.com/questions/11875770/how-to-overcome-datetime-datetime-not-json-serializable
The text was updated successfully, but these errors were encountered: