GithubHelp home page GithubHelp logo

pandas_xlwt's Introduction

Re-register Xlwt Writer

As the xlwt package is no longer maintained, the xlwt engine of pandas was removed in pull request DEPR: Remove xlwt #49296. And this pull request was merged since v0.2.0 .

But there are some legacy APIs that still only support older MS Excel 97/2000/XP/2003 XLS files.

This module contains xlwt engine copied from pandas v1.5.3 and re-register it when you import pandas_xlwt, eventually allow pandas versions above 2.0.0 output xls format file.

Due to the changes in other parts of pandas source code, xls extension will no longer recognized by pandas, You should specific engine="xlwt" when you write xls file.

import pandas_xlwt
df.to_excel(path, index=False, engine="xlwt")

MS Excel 97/2000/XP/2003 XLS file format is really out of date. While this code may still work today, there is no guarantee that this re-registration method will work in future versions of pandas.

Please update your API to support other file formats such as .csv, .tsv or .xlsx as soon as possible.

pandas_xlwt's People

Contributors

maoyibo avatar

Watchers

 avatar

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.