Giter VIP home page Giter VIP logo

Comments (2)

cmdlineluser avatar cmdlineluser commented on September 23, 2024 1

You can pass use_columns with the calamine engine:

>>> pl.read_excel("random.xlsx", engine="calamine", read_options={"use_columns": "B:D"})
# shape: (3, 3)
# ┌──────────┬──────────┬──────────┐
# │ column_1 ┆ column_2 ┆ column_3 │
# │ ---      ┆ ---      ┆ ---      │
# │ f64      ┆ f64      ┆ f64      │
# ╞══════════╪══════════╪══════════╡
# │ 0.900042 ┆ 0.034829 ┆ 0.110054 │
# │ 0.498876 ┆ 0.94322  ┆ 0.203003 │
# │ 0.432077 ┆ 0.888128 ┆ 0.351812 │
# └──────────┴──────────┴──────────┘

from polars.

alexander-beedie avatar alexander-beedie commented on September 23, 2024

Yup, we should expose this as a top-level option; in the meantime you can use the engine-specific read_options parameter as suggested by @cmdlineluser (and the advice the use the "calamine" engine is also on-point as it's extremely fast, and will eventually become our new default ;)

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.