Switch numpy.datetime64() to numpy.dtype('M') to get working equality comparison

This commit is contained in:
Michael Hohn
2022-08-10 17:33:44 -07:00
committed by =Michael Hohn
parent 1754c6c9ca
commit 38af30ead9

View File

@@ -17,10 +17,10 @@ class ScanTablesTypes:
"id" : pd.UInt64Dtype(),
"commit_id" : pd.StringDtype(),
"project_id" : pd.UInt64Dtype(),
"db_create_start" : numpy.datetime64(),
"db_create_stop" : numpy.datetime64(),
"scan_start_date" : numpy.datetime64(),
"scan_stop_date" : numpy.datetime64(),
"db_create_start" : numpy.dtype('M'),
"db_create_stop" : numpy.dtype('M'),
"scan_start_date" : numpy.dtype('M'),
"scan_stop_date" : numpy.dtype('M'),
"tool_name" : pd.StringDtype(),
"tool_version" : pd.StringDtype(),
"tool_query_commit_id" : pd.StringDtype(),
@@ -57,7 +57,7 @@ class ScanTablesTypes:
projects = {
"id" : pd.UInt64Dtype(),
"project_name" : pd.StringDtype(),
"creation_date" : numpy.datetime64(),
"creation_date" : numpy.dtype('M'),
"repo_url" : pd.StringDtype(),
"primary_language" : pd.StringDtype(),
"languages_analyzed" : pd.StringDtype(),