Places API error

Hello! I run the code to match data of 100,000 rows to get placekey using following code:Google Colab

when I run a query (API call) i have a following error:InvalidJSONError: Out of range float values are not JSON compliant
Is there a way to solve the issue?