Coder Social home page Coder Social logo

supported dtypes about pandas2 HOT 11 OPEN

jreback avatar jreback commented on September 15, 2024 2
supported dtypes

from pandas2.

Comments (11)

max-sixty avatar max-sixty commented on September 15, 2024
  • different datetime precision & ranges (e.g. ms vs ns)

from pandas2.

chris-b1 avatar chris-b1 commented on September 15, 2024

Under possible

  • date with no time type (edit: on second thought, is this anything more than a Period[D]?)

from pandas2.

chrisaycock avatar chrisaycock commented on September 15, 2024

Some of the more extreme:

  • IP addresses (both v4 and v6)
  • fractions, storing numerator and denominator as integers

from pandas2.

datnamer avatar datnamer commented on September 15, 2024

@jreback wouldn't we just want a way to have user defined dtypes instead of hardcoding a limited list? Can Dynd help with this?

from pandas2.

jreback avatar jreback commented on September 15, 2024

you certainly can have parameterized types. but completely generic types is a recipe for disaster.
what do you think is missing for primitive / logical typing?

from pandas2.

datnamer avatar datnamer commented on September 15, 2024

What do you mean by parameterized? What types can be parameterized and by what? The link is broken.

Sorry I'm a bit lost.

I'm thinking of having a column of distribution objects or linear models or agents with their own attributes.

from pandas2.

jreback avatar jreback commented on September 15, 2024

that's much too high level - though potential for a another library to build on pandas type system is possible

we are taking about columns of primitives

paramterized are things like

datetime64[D]

from pandas2.

datnamer avatar datnamer commented on September 15, 2024

gotcha.

from pandas2.

wesm avatar wesm commented on September 15, 2024

@datnamer either way, pandas needs to have its own metadata implementation (see the logical/physical decoupling discussion in https://pydata.github.io/pandas-design/internal-architecture.html#logical-types-and-physical-storage-decoupling). We do not want to delegate metadata details to a third party library. Data structures and computation are another matter on a case by case basis (i.e. assuming a library conforms to our memory representation expectations, we can use its algorithms). The tight coupling between metadata (numpy dtypes), memory representation, and algorithms/computation is part of why we are in the current mess.

from pandas2.

jreback avatar jreback commented on September 15, 2024

maybe thing about this: pandas-dev/pandas#3443, which is about nested dtypes in a single object. On another vein should think about a union type (which is a essentially a restricted looking object dtype); SFrame has these.

from pandas2.

sinhrks avatar sinhrks commented on September 15, 2024

+1 for sparse.

maybe including subtype in sparse and categorical is useful, like category[int64]

from pandas2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.