Code Monkey home page Code Monkey logo

Comments (5)

jjtolton avatar jjtolton commented on July 19, 2024
Sequences (1.24+) are breaking how panthera works, basically this works:

(pt/data-frame (vec (flatten (repeat 5 [{:a 1 :b 2} {:a 2 :b 3}]))))
But this doesn't:

(pt/data-frame (flatten (repeat 5 [{:a 1 :b 2} {:a 2 :b 3}])))

flatten is a LazySeq.

The reason this is breaking since 1.24+ is that in 1.24+, @cnuernber changed it so that lazy seqs do not fully realize before they're passed in to Python.

This is to allow infinite sequences from Clojure to be passed in to Python. Technically, the behavior from before 1.24 was a bug -- lazy seqs should not be fully realized in Python.

from libpython-clj.

cnuernber avatar cnuernber commented on July 19, 2024

Potentially fixed by:
https://github.com/cnuernber/libpython-clj/releases/tag/1.28

from libpython-clj.

jjtolton avatar jjtolton commented on July 19, 2024

@alanmarazzi did it work??

from libpython-clj.

alanmarazzi avatar alanmarazzi commented on July 19, 2024

Nope, I'm changing tests

from libpython-clj.

jjtolton avatar jjtolton commented on July 19, 2024

from libpython-clj.

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.