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
Update class DatetimeInspector(Inspector) in sdgx/data_models/inspectors/datetime.py to achieve:
Allow preset common datetime format string, such as: "%Y/%m/%d", "%Y-%m-%d", etc.;
Allow users to specify uncommon but clear datetime format string: "%b-%d-%Y", etc.;
Same as the existing DatetimeInspector, after running the fit method, you can infer which columns belong to the Datetime type. After implementing this Issue, DatetimeInspector can output the specific format strings of some of the columns (not all of them), will help improve the quality of synthetic data.
🏕Solution(optional)
Briefly speaking, the following steps are required:
Modify member variables, add preset Datetime format string;
Modify the __init__ method, add parameters in user-specified format;
Modify the fit method, add the Datetime format string matching steps;
Modify the inspect method and add the output Datetime format string, which will be passed to metadata;
During the implementation process, performance also needs to noticed.
The text was updated successfully, but these errors were encountered:
🚅Search before asking
I have searched for issues similar to this one.
🚅Description
Update
class DatetimeInspector(Inspector)
insdgx/data_models/inspectors/datetime.py
to achieve:Same as the existing
DatetimeInspector
, after running thefit
method, you can infer which columns belong to the Datetime type. After implementing this Issue,DatetimeInspector
can output the specific format strings of some of the columns (not all of them), will help improve the quality of synthetic data.🏕Solution(optional)
Briefly speaking, the following steps are required:
__init__
method, add parameters in user-specified format;fit
method, add the Datetime format string matching steps;inspect
method and add the output Datetime format string, which will be passed to metadata;The text was updated successfully, but these errors were encountered: