Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Datetime type deductor bug #527

Open
paxcema opened this issue Aug 17, 2021 · 0 comments
Open

Datetime type deductor bug #527

paxcema opened this issue Aug 17, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@paxcema
Copy link
Contributor

paxcema commented Aug 17, 2021

NOTE: should try and replicate in new lightwood as well

Traceback (most recent call last): 
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/controllers/transaction.py", line 213, in _run input_data=self.input_data) 
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/controllers/transaction.py", line 170, in _call_phase_module ret = module(self.session, self)(**kwargs) 
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/base_module.py", line 53, in __call__ ret = self.run(**kwargs) 
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/type_deductor/type_deductor.py", line 350, in run answer_arr.append(get_column_data_type([sample_df[x].dropna(), input_data.data_frame[x], x], lmd=self.transaction.lmd)) 
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/type_deductor/type_deductor.py", line 204, in get_column_data_type type_dist, subtype_dist, new_additional_info = count_data_types_in_column(data, lmd, col_name) 
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/type_deductor/type_deductor.py", line 153, in count_data_types_in_column type_guess, subtype_guess = type_checker(element) 
File "/usr/local/lib/python3.6/dist-packages/mindsdb_native/libs/phases/type_deductor/type_deductor.py", 
line 105, in type_check_sequence if '[' in element: 
TypeError: argument of type 'datetime.date' is not iterable
@paxcema paxcema added the bug Something isn't working label Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant