{"id":7058,"date":"2023-11-01T15:27:04","date_gmt":"2023-11-01T09:57:04","guid":{"rendered":"https:\/\/python-programs.com\/?p=7058"},"modified":"2023-11-10T12:11:53","modified_gmt":"2023-11-10T06:41:53","slug":"pandas-change-data-type-of-single-or-multiple-columns-of-dataframe-in-python","status":"publish","type":"post","link":"https:\/\/python-programs.com\/pandas-change-data-type-of-single-or-multiple-columns-of-dataframe-in-python\/","title":{"rendered":"Pandas : Change data type of single or multiple columns of Dataframe in Python"},"content":{"rendered":"

Changeing data type of single or multiple columns of Dataframe in Python<\/h2>\n

In this article we will see how we can change the data type of a single or multiple column of Dataframe in Python.<\/p>\n

Change Data Type of a Single Column :<\/h3>\n

We will use series.astype()<\/code> to change the data type of columns<\/p>\n

Syntax<\/u>:- Series.astype(self, dtype, copy=True, errors='raise', **kwargs)<\/pre>\n

where Arguments:<\/p>\n