Advertisement
dajw916

Dash Datatable Callback Error Stack

Sep 6th, 2023
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 147.17 KB | None | 0 0
  1.  
  2.  
  3. ---------------------------------------------------------------------------
  4. TypeError Traceback (most recent call last)
  5. File ~/.local/lib/python3.9/site-packages/dash/_callback.py:191, in register_callback.<locals>.wrap_func.<locals>.add_context(*args=('Water',), **kwargs={})
  6. 190 try:
  7. --> 191 jsonResponse = to_json(response)
  8. response = {'response': defaultdict(<class 'dict'>, {'datatable-id': {'data': [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}], 'columns': [{'name': '_id', 'id': '_id', 'deletable': False, 'selectable': True}, {'name': 'rec_num', 'id': 'rec_num', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome', 'id': 'age_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'animal_id', 'id': 'animal_id', 'deletable': False, 'selectable': True}, {'name': 'animal_type', 'id': 'animal_type', 'deletable': False, 'selectable': True}, {'name': 'breed', 'id': 'breed', 'deletable': False, 'selectable': True}, {'name': 'color', 'id': 'color', 'deletable': False, 'selectable': True}, {'name': 'date_of_birth', 'id': 'date_of_birth', 'deletable': False, 'selectable': True}, {'name': 'datetime', 'id': 'datetime', 'deletable': False, 'selectable': True}, {'name': 'monthyear', 'id': 'monthyear', 'deletable': False, 'selectable': True}, {'name': 'name', 'id': 'name', 'deletable': False, 'selectable': True}, {'name': 'outcome_subtype', 'id': 'outcome_subtype', 'deletable': False, 'selectable': True}, {'name': 'outcome_type', 'id': 'outcome_type', 'deletable': False, 'selectable': True}, {'name': 'sex_upon_outcome', 'id': 'sex_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'location_lat', 'id': 'location_lat', 'deletable': False, 'selectable': True}, {'name': 'location_long', 'id': 'location_long', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome_in_weeks', 'id': 'age_upon_outcome_in_weeks', 'deletable': False, 'selectable': True}]}}), 'multi': True}
  9. 192 except TypeError:
  10.  
  11. File ~/.local/lib/python3.9/site-packages/dash/_utils.py:21, in to_json(
  12. value={'multi': True, 'response': defaultdict(<class 'dict'>, {'datatable-id': {'d...eks', 'deletable': False, 'selectable': True}]}})}
  13. )
  14. 19 from plotly.io.json import to_json_plotly
  15. ---> 21 return to_json_plotly(value)
  16. value = {'response': defaultdict(<class 'dict'>, {'datatable-id': {'data': [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}], 'columns': [{'name': '_id', 'id': '_id', 'deletable': False, 'selectable': True}, {'name': 'rec_num', 'id': 'rec_num', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome', 'id': 'age_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'animal_id', 'id': 'animal_id', 'deletable': False, 'selectable': True}, {'name': 'animal_type', 'id': 'animal_type', 'deletable': False, 'selectable': True}, {'name': 'breed', 'id': 'breed', 'deletable': False, 'selectable': True}, {'name': 'color', 'id': 'color', 'deletable': False, 'selectable': True}, {'name': 'date_of_birth', 'id': 'date_of_birth', 'deletable': False, 'selectable': True}, {'name': 'datetime', 'id': 'datetime', 'deletable': False, 'selectable': True}, {'name': 'monthyear', 'id': 'monthyear', 'deletable': False, 'selectable': True}, {'name': 'name', 'id': 'name', 'deletable': False, 'selectable': True}, {'name': 'outcome_subtype', 'id': 'outcome_subtype', 'deletable': False, 'selectable': True}, {'name': 'outcome_type', 'id': 'outcome_type', 'deletable': False, 'selectable': True}, {'name': 'sex_upon_outcome', 'id': 'sex_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'location_lat', 'id': 'location_lat', 'deletable': False, 'selectable': True}, {'name': 'location_long', 'id': 'location_long', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome_in_weeks', 'id': 'age_upon_outcome_in_weeks', 'deletable': False, 'selectable': True}]}}), 'multi': True}
  17.  
  18. File /usr/local/anaconda/lib/python3.9/site-packages/plotly/io/_json.py:124, in to_json_plotly(
  19. plotly_object={'multi': True, 'response': defaultdict(<class 'dict'>, {'datatable-id': {'d...eks', 'deletable': False, 'selectable': True}]}})},
  20. pretty=False,
  21. engine='json'
  22. )
  23. 122 from _plotly_utils.utils import PlotlyJSONEncoder
  24. --> 124 return json.dumps(plotly_object, cls=PlotlyJSONEncoder, **opts)
  25. opts = {'separators': (',', ':')}
  26. plotly_object = {'response': defaultdict(<class 'dict'>, {'datatable-id': {'data': [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}], 'columns': [{'name': '_id', 'id': '_id', 'deletable': False, 'selectable': True}, {'name': 'rec_num', 'id': 'rec_num', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome', 'id': 'age_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'animal_id', 'id': 'animal_id', 'deletable': False, 'selectable': True}, {'name': 'animal_type', 'id': 'animal_type', 'deletable': False, 'selectable': True}, {'name': 'breed', 'id': 'breed', 'deletable': False, 'selectable': True}, {'name': 'color', 'id': 'color', 'deletable': False, 'selectable': True}, {'name': 'date_of_birth', 'id': 'date_of_birth', 'deletable': False, 'selectable': True}, {'name': 'datetime', 'id': 'datetime', 'deletable': False, 'selectable': True}, {'name': 'monthyear', 'id': 'monthyear', 'deletable': False, 'selectable': True}, {'name': 'name', 'id': 'name', 'deletable': False, 'selectable': True}, {'name': 'outcome_subtype', 'id': 'outcome_subtype', 'deletable': False, 'selectable': True}, {'name': 'outcome_type', 'id': 'outcome_type', 'deletable': False, 'selectable': True}, {'name': 'sex_upon_outcome', 'id': 'sex_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'location_lat', 'id': 'location_lat', 'deletable': False, 'selectable': True}, {'name': 'location_long', 'id': 'location_long', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome_in_weeks', 'id': 'age_upon_outcome_in_weeks', 'deletable': False, 'selectable': True}]}}), 'multi': True}
  27. 125 elif engine == "orjson":
  28.  
  29. File /usr/local/anaconda/lib/python3.9/json/__init__.py:234, in dumps(
  30. obj={'multi': True, 'response': defaultdict(<class 'dict'>, {'datatable-id': {'d...eks', 'deletable': False, 'selectable': True}]}})},
  31. skipkeys=False,
  32. ensure_ascii=True,
  33. check_circular=True,
  34. allow_nan=True,
  35. cls=<class '_plotly_utils.utils.PlotlyJSONEncoder'>,
  36. indent=None,
  37. separators=(',', ':'),
  38. default=None,
  39. sort_keys=False,
  40. **kw={}
  41. )
  42. 233 cls = JSONEncoder
  43. --> 234 return cls(
  44. cls = <class '_plotly_utils.utils.PlotlyJSONEncoder'>
  45. ensure_ascii = True
  46. skipkeys = False
  47. check_circular = True
  48. allow_nan = True
  49. indent = None
  50. separators = (',', ':')
  51. default = None
  52. sort_keys = False
  53. obj = {'response': defaultdict(<class 'dict'>, {'datatable-id': {'data': [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}], 'columns': [{'name': '_id', 'id': '_id', 'deletable': False, 'selectable': True}, {'name': 'rec_num', 'id': 'rec_num', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome', 'id': 'age_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'animal_id', 'id': 'animal_id', 'deletable': False, 'selectable': True}, {'name': 'animal_type', 'id': 'animal_type', 'deletable': False, 'selectable': True}, {'name': 'breed', 'id': 'breed', 'deletable': False, 'selectable': True}, {'name': 'color', 'id': 'color', 'deletable': False, 'selectable': True}, {'name': 'date_of_birth', 'id': 'date_of_birth', 'deletable': False, 'selectable': True}, {'name': 'datetime', 'id': 'datetime', 'deletable': False, 'selectable': True}, {'name': 'monthyear', 'id': 'monthyear', 'deletable': False, 'selectable': True}, {'name': 'name', 'id': 'name', 'deletable': False, 'selectable': True}, {'name': 'outcome_subtype', 'id': 'outcome_subtype', 'deletable': False, 'selectable': True}, {'name': 'outcome_type', 'id': 'outcome_type', 'deletable': False, 'selectable': True}, {'name': 'sex_upon_outcome', 'id': 'sex_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'location_lat', 'id': 'location_lat', 'deletable': False, 'selectable': True}, {'name': 'location_long', 'id': 'location_long', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome_in_weeks', 'id': 'age_upon_outcome_in_weeks', 'deletable': False, 'selectable': True}]}}), 'multi': True}
  54. kw = {}
  55. 235 skipkeys=skipkeys, ensure_ascii=ensure_ascii,
  56. 236 check_circular=check_circular, allow_nan=allow_nan, indent=indent,
  57. 237 separators=separators, default=default, sort_keys=sort_keys,
  58. 238 **kw).encode(obj)
  59.  
  60. File /usr/local/anaconda/lib/python3.9/site-packages/_plotly_utils/utils.py:59, in PlotlyJSONEncoder.encode(
  61. self=<_plotly_utils.utils.PlotlyJSONEncoder object>,
  62. o={'multi': True, 'response': defaultdict(<class 'dict'>, {'datatable-id': {'d...eks', 'deletable': False, 'selectable': True}]}})}
  63. )
  64. 58 # this will raise errors in a normal-expected way
  65. ---> 59 encoded_o = super(PlotlyJSONEncoder, self).encode(o)
  66. o = {'response': defaultdict(<class 'dict'>, {'datatable-id': {'data': [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}], 'columns': [{'name': '_id', 'id': '_id', 'deletable': False, 'selectable': True}, {'name': 'rec_num', 'id': 'rec_num', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome', 'id': 'age_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'animal_id', 'id': 'animal_id', 'deletable': False, 'selectable': True}, {'name': 'animal_type', 'id': 'animal_type', 'deletable': False, 'selectable': True}, {'name': 'breed', 'id': 'breed', 'deletable': False, 'selectable': True}, {'name': 'color', 'id': 'color', 'deletable': False, 'selectable': True}, {'name': 'date_of_birth', 'id': 'date_of_birth', 'deletable': False, 'selectable': True}, {'name': 'datetime', 'id': 'datetime', 'deletable': False, 'selectable': True}, {'name': 'monthyear', 'id': 'monthyear', 'deletable': False, 'selectable': True}, {'name': 'name', 'id': 'name', 'deletable': False, 'selectable': True}, {'name': 'outcome_subtype', 'id': 'outcome_subtype', 'deletable': False, 'selectable': True}, {'name': 'outcome_type', 'id': 'outcome_type', 'deletable': False, 'selectable': True}, {'name': 'sex_upon_outcome', 'id': 'sex_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'location_lat', 'id': 'location_lat', 'deletable': False, 'selectable': True}, {'name': 'location_long', 'id': 'location_long', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome_in_weeks', 'id': 'age_upon_outcome_in_weeks', 'deletable': False, 'selectable': True}]}}), 'multi': True}
  67. self = <_plotly_utils.utils.PlotlyJSONEncoder object at 0x7f94e223a5b0>
  68. 60 # Brute force guessing whether NaN or Infinity values are in the string
  69. 61 # We catch false positive cases (e.g. strings such as titles, labels etc.)
  70. 62 # but this is ok since the intention is to skip the decoding / reencoding
  71. 63 # step when it's completely safe
  72.  
  73. File /usr/local/anaconda/lib/python3.9/json/encoder.py:199, in JSONEncoder.encode(
  74. self=<_plotly_utils.utils.PlotlyJSONEncoder object>,
  75. o={'multi': True, 'response': defaultdict(<class 'dict'>, {'datatable-id': {'d...eks', 'deletable': False, 'selectable': True}]}})}
  76. )
  77. 196 # This doesn't pass the iterator directly to ''.join() because the
  78. 197 # exceptions aren't as detailed. The list call should be roughly
  79. 198 # equivalent to the PySequence_Fast that ''.join() would do.
  80. --> 199 chunks = self.iterencode(o, _one_shot=True)
  81. o = {'response': defaultdict(<class 'dict'>, {'datatable-id': {'data': [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}], 'columns': [{'name': '_id', 'id': '_id', 'deletable': False, 'selectable': True}, {'name': 'rec_num', 'id': 'rec_num', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome', 'id': 'age_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'animal_id', 'id': 'animal_id', 'deletable': False, 'selectable': True}, {'name': 'animal_type', 'id': 'animal_type', 'deletable': False, 'selectable': True}, {'name': 'breed', 'id': 'breed', 'deletable': False, 'selectable': True}, {'name': 'color', 'id': 'color', 'deletable': False, 'selectable': True}, {'name': 'date_of_birth', 'id': 'date_of_birth', 'deletable': False, 'selectable': True}, {'name': 'datetime', 'id': 'datetime', 'deletable': False, 'selectable': True}, {'name': 'monthyear', 'id': 'monthyear', 'deletable': False, 'selectable': True}, {'name': 'name', 'id': 'name', 'deletable': False, 'selectable': True}, {'name': 'outcome_subtype', 'id': 'outcome_subtype', 'deletable': False, 'selectable': True}, {'name': 'outcome_type', 'id': 'outcome_type', 'deletable': False, 'selectable': True}, {'name': 'sex_upon_outcome', 'id': 'sex_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'location_lat', 'id': 'location_lat', 'deletable': False, 'selectable': True}, {'name': 'location_long', 'id': 'location_long', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome_in_weeks', 'id': 'age_upon_outcome_in_weeks', 'deletable': False, 'selectable': True}]}}), 'multi': True}
  82. self = <_plotly_utils.utils.PlotlyJSONEncoder object at 0x7f94e223a5b0>
  83. 200 if not isinstance(chunks, (list, tuple)):
  84.  
  85. File /usr/local/anaconda/lib/python3.9/json/encoder.py:257, in JSONEncoder.iterencode(
  86. self=<_plotly_utils.utils.PlotlyJSONEncoder object>,
  87. o={'multi': True, 'response': defaultdict(<class 'dict'>, {'datatable-id': {'d...eks', 'deletable': False, 'selectable': True}]}})},
  88. _one_shot=True
  89. )
  90. 253 _iterencode = _make_iterencode(
  91. 254 markers, self.default, _encoder, self.indent, floatstr,
  92. 255 self.key_separator, self.item_separator, self.sort_keys,
  93. 256 self.skipkeys, _one_shot)
  94. --> 257 return _iterencode(o, 0)
  95. _iterencode = <_json.Encoder object at 0x7f94f719f640>
  96. o = {'response': defaultdict(<class 'dict'>, {'datatable-id': {'data': [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}], 'columns': [{'name': '_id', 'id': '_id', 'deletable': False, 'selectable': True}, {'name': 'rec_num', 'id': 'rec_num', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome', 'id': 'age_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'animal_id', 'id': 'animal_id', 'deletable': False, 'selectable': True}, {'name': 'animal_type', 'id': 'animal_type', 'deletable': False, 'selectable': True}, {'name': 'breed', 'id': 'breed', 'deletable': False, 'selectable': True}, {'name': 'color', 'id': 'color', 'deletable': False, 'selectable': True}, {'name': 'date_of_birth', 'id': 'date_of_birth', 'deletable': False, 'selectable': True}, {'name': 'datetime', 'id': 'datetime', 'deletable': False, 'selectable': True}, {'name': 'monthyear', 'id': 'monthyear', 'deletable': False, 'selectable': True}, {'name': 'name', 'id': 'name', 'deletable': False, 'selectable': True}, {'name': 'outcome_subtype', 'id': 'outcome_subtype', 'deletable': False, 'selectable': True}, {'name': 'outcome_type', 'id': 'outcome_type', 'deletable': False, 'selectable': True}, {'name': 'sex_upon_outcome', 'id': 'sex_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'location_lat', 'id': 'location_lat', 'deletable': False, 'selectable': True}, {'name': 'location_long', 'id': 'location_long', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome_in_weeks', 'id': 'age_upon_outcome_in_weeks', 'deletable': False, 'selectable': True}]}}), 'multi': True}
  97.  
  98. File /usr/local/anaconda/lib/python3.9/site-packages/_plotly_utils/utils.py:136, in PlotlyJSONEncoder.default(
  99. self=<_plotly_utils.utils.PlotlyJSONEncoder object>,
  100. obj=ObjectId('64f08d30d1fb0fe1db5c52b9')
  101. )
  102. 135 pass
  103. --> 136 return _json.JSONEncoder.default(self, obj)
  104. self = <_plotly_utils.utils.PlotlyJSONEncoder object at 0x7f94e223a5b0>
  105. obj = ObjectId('64f08d30d1fb0fe1db5c52b9')
  106. _json = <module 'json' from '/usr/local/anaconda/lib/python3.9/json/__init__.py'>
  107.  
  108. File /usr/local/anaconda/lib/python3.9/json/encoder.py:179, in JSONEncoder.default(
  109. self=<_plotly_utils.utils.PlotlyJSONEncoder object>,
  110. o=ObjectId('64f08d30d1fb0fe1db5c52b9')
  111. )
  112. 161 """Implement this method in a subclass such that it returns
  113. 162 a serializable object for ``o``, or calls the base implementation
  114. 163 (to raise a ``TypeError``).
  115. (...)
  116. 177
  117. 178 """
  118. --> 179 raise TypeError(f'Object of type {o.__class__.__name__} '
  119. 180 f'is not JSON serializable')
  120.  
  121. TypeError: Object of type ObjectId is not JSON serializable
  122.  
  123. During handling of the above exception, another exception occurred:
  124.  
  125. InvalidCallbackReturnValue Traceback (most recent call last)
  126. File /usr/local/anaconda/lib/python3.9/site-packages/flask/app.py:1950, in Flask.full_dispatch_request(self=<Flask 'MyDashboard'>)
  127. 1948 rv = self.preprocess_request()
  128. 1949 if rv is None:
  129. -> 1950 rv = self.dispatch_request()
  130. rv = None
  131. self = <Flask 'MyDashboard'>
  132. 1951 except Exception as e:
  133. 1952 rv = self.handle_user_exception(e)
  134.  
  135. File /usr/local/anaconda/lib/python3.9/site-packages/flask/app.py:1936, in Flask.dispatch_request(self=<Flask 'MyDashboard'>)
  136. 1934 return self.make_default_options_response()
  137. 1935 # otherwise dispatch to the handler for that endpoint
  138. -> 1936 return self.view_functions[rule.endpoint](**req.view_args)
  139. req = <Request 'http://127.0.0.1:31593/_dash-update-component' [POST]>
  140. rule = <Rule '/_dash-update-component' (OPTIONS, POST) -> /_dash-update-component>
  141. self.view_functions[rule.endpoint] = <bound method Dash.dispatch of <jupyter_dash.jupyter_app.JupyterDash object at 0x7f94fc4f7310>>
  142. self.view_functions = {'static': <bound method _PackageBoundObject.send_static_file of <Flask 'MyDashboard'>>, '_dash_assets.static': <bound method _PackageBoundObject.send_static_file of <flask.blueprints.Blueprint object at 0x7f94fc4f7940>>, '/_dash-component-suites/<string:package_name>/<path:fingerprinted_path>': <bound method Dash.serve_component_suites of <jupyter_dash.jupyter_app.JupyterDash object at 0x7f94fc4f7310>>, '/_dash-layout': <bound method Dash.serve_layout of <jupyter_dash.jupyter_app.JupyterDash object at 0x7f94fc4f7310>>, '/_dash-dependencies': <bound method Dash.dependencies of <jupyter_dash.jupyter_app.JupyterDash object at 0x7f94fc4f7310>>, '/_dash-update-component': <bound method Dash.dispatch of <jupyter_dash.jupyter_app.JupyterDash object at 0x7f94fc4f7310>>, '/_reload-hash': <bound method Dash.serve_reload_hash of <jupyter_dash.jupyter_app.JupyterDash object at 0x7f94fc4f7310>>, '/_favicon.ico': <function Dash._serve_default_favicon at 0x7f95641f4670>, '/': <bound method Dash.index of <jupyter_dash.jupyter_app.JupyterDash object at 0x7f94fc4f7310>>, '/<path:path>': <bound method Dash.index of <jupyter_dash.jupyter_app.JupyterDash object at 0x7f94fc4f7310>>, 'alive': <function JupyterDash.__init__.<locals>.alive at 0x7f9505c2e3a0>}
  143. rule.endpoint = '/_dash-update-component'
  144. req.view_args = {}
  145. self = <Flask 'MyDashboard'>
  146.  
  147. File ~/.local/lib/python3.9/site-packages/dash/dash.py:1336, in Dash.dispatch(
  148. self=<jupyter_dash.jupyter_app.JupyterDash object>
  149. )
  150. 1334 msg = "Callback function not found for output '{}', perhaps you forgot to prepend the '@'?"
  151. 1335 raise KeyError(msg.format(output)) from missing_callback_function
  152. -> 1336 response.set_data(func(*args, outputs_list=outputs_list))
  153. outputs_list = [{'id': 'datatable-id', 'property': 'data'}, {'id': 'datatable-id', 'property': 'columns'}]
  154. response = <Response 0 bytes [200 OK]>
  155. args = ['Water']
  156. func = <function update_dashboard at 0x7f94f7260670>
  157. 1337 return response
  158.  
  159. File ~/.local/lib/python3.9/site-packages/dash/_callback.py:193, in register_callback.<locals>.wrap_func.<locals>.add_context(*args=('Water',), **kwargs={})
  160. 191 jsonResponse = to_json(response)
  161. 192 except TypeError:
  162. --> 193 _validate.fail_callback_output(output_value, output)
  163. output_value = [[{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}], [{'name': '_id', 'id': '_id', 'deletable': False, 'selectable': True}, {'name': 'rec_num', 'id': 'rec_num', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome', 'id': 'age_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'animal_id', 'id': 'animal_id', 'deletable': False, 'selectable': True}, {'name': 'animal_type', 'id': 'animal_type', 'deletable': False, 'selectable': True}, {'name': 'breed', 'id': 'breed', 'deletable': False, 'selectable': True}, {'name': 'color', 'id': 'color', 'deletable': False, 'selectable': True}, {'name': 'date_of_birth', 'id': 'date_of_birth', 'deletable': False, 'selectable': True}, {'name': 'datetime', 'id': 'datetime', 'deletable': False, 'selectable': True}, {'name': 'monthyear', 'id': 'monthyear', 'deletable': False, 'selectable': True}, {'name': 'name', 'id': 'name', 'deletable': False, 'selectable': True}, {'name': 'outcome_subtype', 'id': 'outcome_subtype', 'deletable': False, 'selectable': True}, {'name': 'outcome_type', 'id': 'outcome_type', 'deletable': False, 'selectable': True}, {'name': 'sex_upon_outcome', 'id': 'sex_upon_outcome', 'deletable': False, 'selectable': True}, {'name': 'location_lat', 'id': 'location_lat', 'deletable': False, 'selectable': True}, {'name': 'location_long', 'id': 'location_long', 'deletable': False, 'selectable': True}, {'name': 'age_upon_outcome_in_weeks', 'id': 'age_upon_outcome_in_weeks', 'deletable': False, 'selectable': True}]]
  164. _validate = <module 'dash._validate' from '/home/johnnguyen4_snhu/.local/lib/python3.9/site-packages/dash/_validate.py'>
  165. output = [<Output `datatable-id.data`>, <Output `datatable-id.columns`>]
  166. 195 return jsonResponse
  167.  
  168. File ~/.local/lib/python3.9/site-packages/dash/_validate.py:297, in fail_callback_output(
  169. output_value=[[{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'age_upon_outcome': '6 months', 'age_upon_outcome_in_weeks': 30.3544642857143, 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'location_lat': 30.5480802368633, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 114.089186507937, 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'location_lat': 30.6138310636757, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.3702380952381, 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'location_lat': 30.5572161697962, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'age_upon_outcome': '9 months', 'age_upon_outcome_in_weeks': 40.2453373015873, 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'location_lat': 30.7569243032341, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'age_upon_outcome': '7 months', 'age_upon_outcome_in_weeks': 33.234126984127, 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'location_lat': 30.4869754937324, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 53.0782738095238, 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'location_lat': 30.2840111162863, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 104.355654761905, 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'location_lat': 30.7157941956301, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 109.074107142857, 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'location_lat': 30.3814182796497, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'age_upon_outcome': '9 months', 'age_upon_outcome_in_weeks': 39.2441468253968, 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'location_lat': 30.729653440489, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.655753968254, 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'location_lat': 30.5150703656925, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 104.653472222222, 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'location_lat': 30.2749778566093, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'age_upon_outcome': '6 months', 'age_upon_outcome_in_weeks': 26.237996031746, 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'location_lat': 30.7472967860317, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.8571428571429, 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'location_lat': 30.601325440225, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.2383928571429, 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'location_lat': 30.3400696542736, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 109.973611111111, 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'location_lat': 30.6322306158419, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'age_upon_outcome': '6 months', 'age_upon_outcome_in_weeks': 26.5285714285714, 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'location_lat': 30.3349190589292, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 53.9534722222222, 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'location_lat': 30.6051401154932, ...}], [{'deletable': False, 'id': '_id', 'name': '_id', 'selectable': True}, {'deletable': False, 'id': 'rec_num', 'name': 'rec_num', 'selectable': True}, {'deletable': False, 'id': 'age_upon_outcome', 'name': 'age_upon_outcome', 'selectable': True}, {'deletable': False, 'id': 'animal_id', 'name': 'animal_id', 'selectable': True}, {'deletable': False, 'id': 'animal_type', 'name': 'animal_type', 'selectable': True}, {'deletable': False, 'id': 'breed', 'name': 'breed', 'selectable': True}, {'deletable': False, 'id': 'color', 'name': 'color', 'selectable': True}, {'deletable': False, 'id': 'date_of_birth', 'name': 'date_of_birth', 'selectable': True}, {'deletable': False, 'id': 'datetime', 'name': 'datetime', 'selectable': True}, {'deletable': False, 'id': 'monthyear', 'name': 'monthyear', 'selectable': True}, {'deletable': False, 'id': 'name', 'name': 'name', 'selectable': True}, {'deletable': False, 'id': 'outcome_subtype', 'name': 'outcome_subtype', 'selectable': True}, {'deletable': False, 'id': 'outcome_type', 'name': 'outcome_type', 'selectable': True}, {'deletable': False, 'id': 'sex_upon_outcome', 'name': 'sex_upon_outcome', 'selectable': True}, {'deletable': False, 'id': 'location_lat', 'name': 'location_lat', 'selectable': True}, {'deletable': False, 'id': 'location_long', 'name': 'location_long', 'selectable': True}, {'deletable': False, 'id': 'age_upon_outcome_in_weeks', 'name': 'age_upon_outcome_in_weeks', 'selectable': True}]],
  170. output=[<Output `datatable-id.data`>, <Output `datatable-id.columns`>]
  171. )
  172. 295 if isinstance(output_value, list):
  173. 296 for i, val in enumerate(output_value):
  174. --> 297 _validate_value(val, index=i)
  175. val = [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}]
  176. i = 0
  177. 298 else:
  178. 299 _validate_value(output_value)
  179.  
  180. File ~/.local/lib/python3.9/site-packages/dash/_validate.py:287, in fail_callback_output.<locals>._validate_value(
  181. val=[{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'age_upon_outcome': '6 months', 'age_upon_outcome_in_weeks': 30.3544642857143, 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'location_lat': 30.5480802368633, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 114.089186507937, 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'location_lat': 30.6138310636757, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.3702380952381, 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'location_lat': 30.5572161697962, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'age_upon_outcome': '9 months', 'age_upon_outcome_in_weeks': 40.2453373015873, 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'location_lat': 30.7569243032341, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'age_upon_outcome': '7 months', 'age_upon_outcome_in_weeks': 33.234126984127, 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'location_lat': 30.4869754937324, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 53.0782738095238, 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'location_lat': 30.2840111162863, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 104.355654761905, 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'location_lat': 30.7157941956301, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 109.074107142857, 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'location_lat': 30.3814182796497, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'age_upon_outcome': '9 months', 'age_upon_outcome_in_weeks': 39.2441468253968, 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'location_lat': 30.729653440489, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.655753968254, 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'location_lat': 30.5150703656925, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 104.653472222222, 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'location_lat': 30.2749778566093, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'age_upon_outcome': '6 months', 'age_upon_outcome_in_weeks': 26.237996031746, 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'location_lat': 30.7472967860317, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.8571428571429, 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'location_lat': 30.601325440225, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.2383928571429, 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'location_lat': 30.3400696542736, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 109.973611111111, 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'location_lat': 30.6322306158419, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'age_upon_outcome': '6 months', 'age_upon_outcome_in_weeks': 26.5285714285714, 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'location_lat': 30.3349190589292, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 53.9534722222222, 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'location_lat': 30.6051401154932, ...}],
  182. index=0
  183. )
  184. 285 # val is not a Component, but is at the top level of tree
  185. 286 elif not _value_is_valid(val):
  186. --> 287 _raise_invalid(
  187. val = [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}]
  188. type(val) = <class 'list'>
  189. index = 0
  190. 288 bad_val=val,
  191. 289 outer_val=type(val).__name__,
  192. 290 path="",
  193. 291 index=index,
  194. 292 toplevel=True,
  195. 293 )
  196.  
  197. File ~/.local/lib/python3.9/site-packages/dash/_validate.py:226, in fail_callback_output.<locals>._raise_invalid(
  198. bad_val=[{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'age_upon_outcome': '6 months', 'age_upon_outcome_in_weeks': 30.3544642857143, 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'location_lat': 30.5480802368633, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 114.089186507937, 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'location_lat': 30.6138310636757, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.3702380952381, 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'location_lat': 30.5572161697962, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'age_upon_outcome': '9 months', 'age_upon_outcome_in_weeks': 40.2453373015873, 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'location_lat': 30.7569243032341, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'age_upon_outcome': '7 months', 'age_upon_outcome_in_weeks': 33.234126984127, 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'location_lat': 30.4869754937324, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 53.0782738095238, 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'location_lat': 30.2840111162863, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 104.355654761905, 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'location_lat': 30.7157941956301, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 109.074107142857, 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'location_lat': 30.3814182796497, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'age_upon_outcome': '9 months', 'age_upon_outcome_in_weeks': 39.2441468253968, 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'location_lat': 30.729653440489, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.655753968254, 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'location_lat': 30.5150703656925, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 104.653472222222, 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'location_lat': 30.2749778566093, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'age_upon_outcome': '6 months', 'age_upon_outcome_in_weeks': 26.237996031746, 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'location_lat': 30.7472967860317, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.8571428571429, 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'location_lat': 30.601325440225, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 52.2383928571429, 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'location_lat': 30.3400696542736, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'age_upon_outcome': '2 years', 'age_upon_outcome_in_weeks': 109.973611111111, 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'location_lat': 30.6322306158419, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'age_upon_outcome': '6 months', 'age_upon_outcome_in_weeks': 26.5285714285714, 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'location_lat': 30.3349190589292, ...}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'age_upon_outcome': '1 year', 'age_upon_outcome_in_weeks': 53.9534722222222, 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'location_lat': 30.6051401154932, ...}],
  199. outer_val='list',
  200. path='',
  201. index=0,
  202. toplevel=True
  203. )
  204. 217 index_string = "[*]" if index is None else "[{:d}]".format(index)
  205. 218 location = dedent(
  206. 219 """
  207. 220 The value in question is located at
  208. (...)
  209. 223 """
  210. 224 ).format(index_string, outer_type, outer_id, path)
  211. --> 226 raise exceptions.InvalidCallbackReturnValue(
  212. exceptions = <module 'dash.exceptions' from '/home/johnnguyen4_snhu/.local/lib/python3.9/site-packages/dash/exceptions.py'>
  213. output = [<Output `datatable-id.data`>, <Output `datatable-id.columns`>]
  214. toplevel = True
  215. not toplevel = False
  216. bad_type = 'list'
  217. location = '\nThe value in question is either the only value returned,\nor is in the top level of the returned list,\n'
  218. bad_val = [{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}]
  219. 227 dedent(
  220. 228 """
  221. 229 The callback for `{output}`
  222. 230 returned a {object:s} having type `{type}`
  223. 231 which is not JSON serializable.
  224. 232
  225. 233 {location}
  226. 234 and has string representation
  227. 235 `{bad_val}`
  228. 236
  229. 237 In general, Dash properties can only be
  230. 238 dash components, strings, dictionaries, numbers, None,
  231. 239 or lists of those.
  232. 240 """
  233. 241 ).format(
  234. 242 output=repr(output),
  235. 243 object="tree with one value" if not toplevel else "value",
  236. 244 type=bad_type,
  237. 245 location=location,
  238. 246 bad_val=bad_val,
  239. 247 )
  240. 248 )
  241.  
  242. InvalidCallbackReturnValue: The callback for `[<Output `datatable-id.data`>, <Output `datatable-id.columns`>]`
  243. returned a value having type `list`
  244. which is not JSON serializable.
  245.  
  246.  
  247. The value in question is either the only value returned,
  248. or is in the top level of the returned list,
  249.  
  250. and has string representation
  251. `[{'_id': ObjectId('64f08d30d1fb0fe1db5c52b9'), 'rec_num': 36, 'age_upon_outcome': '6 months', 'animal_id': 'A706953', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2014-12-06', 'datetime': '2015-07-06 11:33:00', 'monthyear': '2015-07-06T11:33:00', 'name': '', 'outcome_subtype': 'Medical', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5480802368633, 'location_long': -97.2969969058957, 'age_upon_outcome_in_weeks': 30.3544642857143}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5571'), 'rec_num': 732, 'age_upon_outcome': '2 years', 'animal_id': 'A749782', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2015-05-19', 'datetime': '2017-07-25 14:59:00', 'monthyear': '2017-07-25T14:59:00', 'name': '*Catalina', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6138310636757, 'location_long': -97.5752164857665, 'age_upon_outcome_in_weeks': 114.089186507937}, {'_id': ObjectId('64f08d30d1fb0fe1db5c56f2'), 'rec_num': 1121, 'age_upon_outcome': '1 year', 'animal_id': 'A757158', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Black', 'date_of_birth': '2016-08-30', 'datetime': '2017-08-31 14:12:00', 'monthyear': '2017-08-31T14:12:00', 'name': 'Pirata', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5572161697962, 'location_long': -97.5363224263878, 'age_upon_outcome_in_weeks': 52.3702380952381}, {'_id': ObjectId('64f08d30d1fb0fe1db5c58f3'), 'rec_num': 1628, 'age_upon_outcome': '9 months', 'animal_id': 'A740471', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan/White', 'date_of_birth': '2016-03-17', 'datetime': '2016-12-23 17:13:00', 'monthyear': '2016-12-23T17:13:00', 'name': 'Mika', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7569243032341, 'location_long': -97.7392549176654, 'age_upon_outcome_in_weeks': 40.2453373015873}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5980'), 'rec_num': 1757, 'age_upon_outcome': '7 months', 'animal_id': 'A742767', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2016-06-27', 'datetime': '2017-02-14 15:20:00', 'monthyear': '2017-02-14T15:20:00', 'name': 'Marley', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.4869754937324, 'location_long': -97.4280017197358, 'age_upon_outcome_in_weeks': 33.234126984127}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5a5b'), 'rec_num': 1988, 'age_upon_outcome': '1 year', 'animal_id': 'A762781', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2016-11-27', 'datetime': '2017-12-03 13:09:00', 'monthyear': '2017-12-03T13:09:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2840111162863, 'location_long': -97.4600542219677, 'age_upon_outcome_in_weeks': 53.0782738095238}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5aa0'), 'rec_num': 2041, 'age_upon_outcome': '2 years', 'animal_id': 'A702745', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2013-05-22', 'datetime': '2015-05-22 11:45:00', 'monthyear': '2015-05-22T11:45:00', 'name': 'Abigail', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7157941956301, 'location_long': -97.4523664870572, 'age_upon_outcome_in_weeks': 104.355654761905}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5b4e'), 'rec_num': 2225, 'age_upon_outcome': '2 years', 'animal_id': 'A757341', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-03 12:27:00', 'monthyear': '2017-10-03T12:27:00', 'name': 19, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3814182796497, 'location_long': -97.7373217391863, 'age_upon_outcome_in_weeks': 109.074107142857}, {'_id': ObjectId('64f08d30d1fb0fe1db5c5f8e'), 'rec_num': 3319, 'age_upon_outcome': '9 months', 'animal_id': 'A687748', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Yellow', 'date_of_birth': '2013-12-09', 'datetime': '2014-09-09 17:01:00', 'monthyear': '2014-09-09T17:01:00', 'name': '', 'outcome_subtype': 'Suffering', 'outcome_type': 'Euthanasia', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.729653440489, 'location_long': -97.3912941009824, 'age_upon_outcome_in_weeks': 39.2441468253968}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6313'), 'rec_num': 4222, 'age_upon_outcome': '1 year', 'animal_id': 'A735551', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-25', 'datetime': '2016-09-27 14:10:00', 'monthyear': '2016-09-27T14:10:00', 'name': 'Daisy', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.5150703656925, 'location_long': -97.6092589677489, 'age_upon_outcome_in_weeks': 52.655753968254}, {'_id': ObjectId('64f08d30d1fb0fe1db5c63ba'), 'rec_num': 4391, 'age_upon_outcome': '2 years', 'animal_id': 'A739950', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2014-12-09', 'datetime': '2016-12-10 13:47:00', 'monthyear': '2016-12-10T13:47:00', 'name': '*Leah', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.2749778566093, 'location_long': -97.7052222023318, 'age_upon_outcome_in_weeks': 104.653472222222}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6586'), 'rec_num': 4846, 'age_upon_outcome': '6 months', 'animal_id': 'A739549', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Tan', 'date_of_birth': '2016-06-04', 'datetime': '2016-12-04 15:59:00', 'monthyear': '2016-12-04T15:59:00', 'name': 'Penny', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.7472967860317, 'location_long': -97.6152946055269, 'age_upon_outcome_in_weeks': 26.237996031746}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6a4b'), 'rec_num': 6056, 'age_upon_outcome': '1 year', 'animal_id': 'A736948', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-10-19', 'datetime': '2016-10-23 00:00:00', 'monthyear': '2016-10-23T00:00:00', 'name': '', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.601325440225, 'location_long': -97.2533625326776, 'age_upon_outcome_in_weeks': 52.8571428571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c6aef'), 'rec_num': 6237, 'age_upon_outcome': '1 year', 'animal_id': 'A747734', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Chocolate/White', 'date_of_birth': '2016-04-24', 'datetime': '2017-04-24 16:03:00', 'monthyear': '2017-04-24T16:03:00', 'name': 'Ella', 'outcome_subtype': '', 'outcome_type': 'Return to Owner', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3400696542736, 'location_long': -97.6350634308579, 'age_upon_outcome_in_weeks': 52.2383928571429}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7037'), 'rec_num': 7583, 'age_upon_outcome': '2 years', 'animal_id': 'A757347', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black', 'date_of_birth': '2015-09-01', 'datetime': '2017-10-09 19:34:00', 'monthyear': '2017-10-09T19:34:00', 'name': 22, 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6322306158419, 'location_long': -97.2747762759927, 'age_upon_outcome_in_weeks': 109.973611111111}, {'_id': ObjectId('64f08d30d1fb0fe1db5c7454'), 'rec_num': 8628, 'age_upon_outcome': '6 months', 'animal_id': 'A726670', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'Black/White', 'date_of_birth': '2015-11-13', 'datetime': '2016-05-16 16:48:00', 'monthyear': '2016-05-16T16:48:00', 'name': '*Jenny', 'outcome_subtype': 'Partner', 'outcome_type': 'Transfer', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.3349190589292, 'location_long': -97.3383166456323, 'age_upon_outcome_in_weeks': 26.5285714285714}, {'_id': ObjectId('64f08d30d1fb0fe1db5c785c'), 'rec_num': 9659, 'age_upon_outcome': '1 year', 'animal_id': 'A737699', 'animal_type': 'Dog', 'breed': 'Labrador Retriever Mix', 'color': 'White/Brown', 'date_of_birth': '2015-11-02', 'datetime': '2016-11-13 16:11:00', 'monthyear': '2016-11-13T16:11:00', 'name': 'Sadie', 'outcome_subtype': '', 'outcome_type': 'Adoption', 'sex_upon_outcome': 'Intact Female', 'location_lat': 30.6051401154932, 'location_long': -97.6885626858256, 'age_upon_outcome_in_weeks': 53.9534722222222}]`
  252.  
  253. In general, Dash properties can only be
  254. dash components, strings, dictionaries, numbers, None,
  255. or lists of those.
  256.  
  257.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement