Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Converting objects into integers

#Converting Product_Category from uint8 into integers and then assign the values back to df

df['Product_Category']=df['Product_Category'].astype(int)
Comment

PREVIOUS NEXT
Code Example
Python :: how to use csv in python 
Python :: failed to execute script 
Python :: python list unique in order 
Python :: iterate through an array python 
Python :: remove hyperlink from text python 
Python :: calculate the same value in list i python 
Python :: conda environment 
Python :: print even numbers in python 
Python :: move all files in directory with shutils 
Python :: valor absoluto en python 
Python :: how to append leading zeros in python 
Python :: pd merge 
Python :: python do while 
Python :: Sum values of column based on the unique values of another column 
Python :: Python Tkinter ListBox Widget 
Python :: python line_profiler 
Python :: django include all columns admin show 
Python :: pandas filter with given value 
Python :: saving model in pytorch 
Python :: How to print a groupby object 
Python :: get value and key from dict python 
Python :: discord py edit message 
Python :: python convert float to decimal 
Python :: how to get key of a particular value in dictionary python using index 
Python :: how to cout in python 
Python :: get random float in range python 
Python :: python location 
Python :: split string in python 
Python :: rmse python 
Python :: add column to existing numpy array 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =