0

I have one simple question about types of data in Pandas DataFrame:

A column which has values like:

1, 
22, 
56, 
66 

is a numerical values column.
What is a type of values in column which has values like this:

radio, 
TV, 
Car 

and so on ?

zx485
  • 28,498
  • 28
  • 50
  • 59
dingaro
  • 2,156
  • 9
  • 29
  • `int`? `string`? – jezrael Mar 16 '20 at 13:45
  • 4
    Beware there are two different things here: the type of the value and the dtype of the column. A column with an int dtype (int32 or int64 for example) can only contain integer values. A column with a floating point type (float32 or float64) can only contain floating point values, including NaN. But a column with `object` dtype can contain any value, be it string, integer or float. – Serge Ballesta Mar 16 '20 at 13:52
  • Maybe help [this](https://stackoverflow.com/questions/42672552/pandas-cast-column-to-string-does-not-work/42672574#42672574) – jezrael Mar 16 '20 at 13:56
  • Have you looked at the Pandas docs? – AMC Mar 16 '20 at 21:41
  • I reformatted the entities into a visible column. This display should be more intuitive. – zx485 Mar 16 '20 at 21:46

0 Answers0