I have a series of numbers which are given in str (string) format as given below. I need to convert this into int (integer) format in Pandas DataFrame.
"[[7.578393211526595e-05, 3.102677319823205471, -2.308712645142408767, ...]]"
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are different methods of doing this. You can use astype(int) to convert string to integer.
You may also use to_numeric to convert string to integer.