Giter Site home page Giter Site logo

Comments (1)

tshort avatar tshort commented on August 20, 2024

I think this works now.

julia> d = DataFrame({PooledDataVec[1,2],[3,4]})
DataFrame  (2,2)
        x1 x2
[1,]     1  3
[2,]     2  4

julia> d2 = DataFrame({PooledDataVec[11,22],[3,4]})
DataFrame  (2,2)
        x1 x2
[1,]    11  3
[2,]    22  4

julia> rbind(d,d2)
DataFrame  (4,2)
        x1 x2
[1,]     1  3
[2,]     2  4
[3,]    11  3
[4,]    22  4


julia> rbind(d,d2) | idump
DataFrame 
  columns: Array(Any,(2,))
    1: PooledDataVec{Int64} 
      refs: Array(Uint16,(4,)) [0x0001, 0x0002, 0x0003, 0x0004]
      pool: Array(Int64,(4,)) [1, 2, 11, 22]
      filter: Bool false
      replace: Bool false
      replaceVal: Int64 0
    2: Array(Int64,(4,)) [3, 4, 3, 4]
  colindex: Index 
    lookup: Dict{Union(UTF8String,ASCIIString),Int64} 
      keys: Array(Any,(16,))
        1: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        2: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        3: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        4: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        5: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        6: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        7: ASCIIString 
          data: Array(Uint8,(2,)) [0x78, 0x31]
        8: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        9: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        10: ASCIIString 
          data: Array(Uint8,(2,)) [0x78, 0x32]
      vals: Array(Any,(16,))
        1: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        2: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        3: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        4: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        5: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        6: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        7: Int64 1
        8: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        9: Symbol __c782dbf1cf4d6a2e5e3865d7e95634f2e09b5902__
        10: Int64 2
      ndel: Int64 0
      deleter: identity
    names: Array(Union(UTF8String,ASCIIString),(2,)) ["x1", "x2"]

from dataframes.jl.

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.