1# convert Series
2my_series = pd.to_numeric(my_series)
3
4# convert column "a" of a DataFrame
5df["a"] = pd.to_numeric(df["a"])
6
1int(anyData) #any into integer
2str(anyData) #any into string
3ord(chr) #character into number
4hex(int) #integer into hexadecimal string
5oct(int) #integer into octal string
6float(anyData) #any into float
7tuple() #convert to tuple
8set() #returns the type after converting to set
9list() #convert any data type to a list
10dict() #convert a tuple of order (key,value) into a dictionary
11complex(real,imag) #converts real numbers to complex(real,imag) number
1equationStrToInt = '8 * 8'
2eval(equationStrToInt)
3type(equationStrToInt)
4print(equationStrToInt)
5strToList = 'GREPPER'
6list(strToList)
7type(strToList)
8print(strToList)