# creates a list of numbers
numbers = ['1','2','3','4','5','6','7','8','9','0']
# a function that removes the string characters such as "$" or "," by using the list created above
def convertToInt(column):
return int(''.join(filter(lambda x: x in numbers, column)))
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter