Giter Site home page Giter Site logo

Comments (2)

cjackal avatar cjackal commented on July 23, 2024

While polars support the python standard pathlib.Path source, what actually happens is reading the path string from the input Path (happening at _prepare_file_arg in the traceback) and passing it to rust backend.

polars is yet to support arbitrary python path objects like zipfile.Path (or, frankly speaking, a path object is not a well-defined concept in python thus polars cannot properly check whether it is a path object or not), so I think your workaround is indeed the current best solution. In any case, current internal mechanism of polars requires reading the file content to memory on python side, so there is no performance penalty even if zipfile.Path support is added.

from polars.

daviewales avatar daviewales commented on July 23, 2024

Thanks. I guess any future improvement would depend on the rust backend gaining support for reading/scanning paths in zip files? And then a special case could be added to the Python library to extract the required information from zipfile.Path and pass it to the rust backend?

from polars.

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.