Object of type int64 is not JSON serializable during passing it to request.post
json does not recognize NumPy data types. Convert the number to a Python int before serializing the object
Hello @monishkumar9677! Thanks for opening this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

* In the file [`issue2.py`](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py):

> [Line 5:12](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L5): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 6:12](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L6): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 12:34](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L12): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 18:10](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L18): [E126](https://duckduckgo.com/?q=pep8%20E126) continuation line over-indented for hanging indent
> [Line 20:10](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L20): [E123](https://duckduckgo.com/?q=pep8%20E123) closing bracket does not match indentation of opening bracket's line
> [Line 24:1](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L24): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 27:1](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L27): [E265](https://duckduckgo.com/?q=pep8%20E265) block comment should start with '# '
> [Line 27:1](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L27): [E303](https://duckduckgo.com/?q=pep8%20E303) too many blank lines (4)
> [Line 40:1](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L40): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 40:1](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/issue2.py#L40): [W391](https://duckduckgo.com/?q=pep8%20W391) blank line at end of file

* In the file [`sample.py`](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/sample.py):

> [Line 1:20](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/sample.py#L1): [E703](https://duckduckgo.com/?q=pep8%20E703) statement ends with a semicolon
> [Line 2:16](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/sample.py#L2): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 23:24](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/sample.py#L23): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 25:23](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/sample.py#L25): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 27:22](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/sample.py#L27): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 31:23](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/sample.py#L31): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 37:1](https://github.com/pandas-dev/pandas/blob/57bfea3d229dda250ba11368f2c6afc72ed4e1ab/sample.py#L37): [W391](https://duckduckgo.com/?q=pep8%20W391) blank line at end of file

 Please follow the guidance in your last PR on how to appropriately communicate your fix and submit a pull request. Thanks

https://github.com/pandas-dev/pandas/pull/46640#pullrequestreview-934102939=
https://github.com/pandas-dev/pandas/pull/46640#issuecomment-1092125566=