Here is an example:
import graphlab as gl
import numpy.random as npr
npr.choice(['a', 'b', 'c', 'd'], size = 100, replace=True).dtype
df_so = gl.SFrame({"col1": npr.randint(low = 1, high = 3, size = 100),
"col2": npr.randint(low = 1, high = 10, size = 100),
"col3": npr.choice(['a', 'b', 'c', 'd'], size = 100, replace=True)})
df_so.column_types
I would like to understand:
- why?
- if there is a way to prevent this.