Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

remove dot from number python

# if you have arrays of number
a = [10.000, 20.000, 25.000]
b = [int(i) for i in a]
print(b) # [10, 20, 25]
# if you have arrays of number which are string
a = ["10.000", "20.000", "25.000"]
b = [i.replace(".", "") for i in a]
print(b) #['10000', '20000', '25000']
Comment

PREVIOUS NEXT
Code Example
Python :: how to make a nan value in a list 
Python :: findout not common values between two data frames 
Python :: random int python 
Python :: one hot encoding 
Python :: django tempalte tag datetime to timestamp 
Python :: python play music 
Python :: python look up how many rows in dataframe 
Python :: python sort dictionary by value 
Python :: how to extract words from string in python 
Python :: how to create a variablein python 
Python :: joining two lists in python 
Python :: python is inf 
Python :: run in thread decorator 
Python :: randomly shuffle array python 
Python :: subtract number from each element in list python 
Python :: python slice notation 
Python :: how to push item to array python 
Python :: primary key auto increment python django 
Python :: how to check substring in python 
Python :: np array to list 
Python :: jsonschema in python 
Python :: Fast api importing optional 
Python :: power function python 
Python :: python datetime get weekday name 
Python :: python print without new lines 
Python :: spark to pandas 
Python :: round list python 
Python :: Access item in a list of lists 
Python :: selenium set chrome executable path 
Python :: subset a list python 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =