ignore filter warnings jupyter notebook; python pandas disable warning; jupyter notebook warning off . unsafe means any data conversions may be done. Using Kolmogorov complexity to measure difficulty of problems? for unsafe casting. How do I select rows from a DataFrame based on column values? What video game is Charlie playing in Poker Face S01E07? Do new devs get fired if they can't solve a certain bug? that the string dtype length is long enough to store the max Level up your programming skills. Syntax array.astype(typcode) Parameters The astype () method takes the typecode value as its only parameter value. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. This may be easier to see if we use a list-comprehension, rather than a generator to see what is going on: and then it is clear from here that, through summing these numbers together, we will get the result of 12345. Answered by : vishal-patel . How can I delete a file or folder in Python? Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, I tried what you wrote but it didn't return the same as you did: >>>num =132 >>>map(int, str(num))