Intention regarding types in tablecloth (based on tablecloth.api.utils) #73
Replies: 2 comments
-
Took some time to look a bit more closely at how Python/Numpy handles this. Will look at R stuff later. Numpy has detailed typed, e.g. np.issubdtype(np.int32, np.integer)
# True When you check the datatype of the array, you get the granular type: a = np.arange(3, dtype=np.int32)
a.dtype
# dtype('int32') |
Beta Was this translation helpful? Give feedback.
-
The main idea was mainly supporting the selection columns by a type. And yes, the assumption is that user wants to select |
Beta Was this translation helpful? Give feedback.
-
@genmeblog trying out this new discussion context for some of our conversation. I started looking into the type helpers in tablecloth.api.utils, and had a few questions about what's intended.
First, I see that
type?
there is designed to answer questions about the hierarchy of types specified intype-sets
. I.e.(type? :integer :int64)
. I wondered what this implies about users will interact with types in tablecloth. I'm assuming the intention is that users will usually think about types in terms of the parent categories: integer
,:datetime
, etc, and not in terms of the more granular types:int32
,:int64
, etc. Is that the intention?Beta Was this translation helpful? Give feedback.
All reactions