How python converts signed', 'strings to integers or floating-point numbers

In

python, how do I convert a text like 8532697 to a numeric type 8532697?
for example:
a = "8532697"
tried astype (float) and int (a) could not be converted successfully.


int ("8532697" .replace (',',')


if you want to convert to float type, use float ('8532697'.replace (',',')). If it is int type, just change the preceding float to int

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9dd03-1983.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9dd03-1983.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?