convert int to string python 3 code example
Example 1: how to make an int into a string python
int x = 10
string p = str(x)
Example 2: make int into string python
number = 12
string_number = str(number)
Example 3: python: convert variable as character
df['myvar'] = df['myvar'].astype(str)
Example 4: convert int to string python
int x = 5
string_from_int = str(x)
Example 5: float to int in python
# convert float to int
int(2.0) #output :2