Skip to content

Glossary: pandas Basics

astype

Also written: .astype()

Converts a column to another dtype, such as `"int64"` or `"float64"`. It stops with an error if any value can't be converted.

Where the book teaches it

Related terms

Dtypeto_numeric