Есть ли способ вернуть тип элемента? - PullRequest
0 голосов
/ 08 января 2020
dict(map(lambda x,y:(x,type(y)) ,new_row.keys(),new_row.values()))
#this return {'customer_name': <class 'str'>, 'customer_id': <class 'str'>, 'customer_age': <class 'int'>, #'customer_city': <class 'str'>, 'phone_num': <class 'str'>}
#but I need : {'customer_name': str, 'customer_id': str, 'customer_age': int, 'customer_city':  str, 'phone_num': str}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...