Skip to content

[ENH] Save Data: Support saving to Excel#3453

Merged
janezd merged 10 commits into
biolab:masterfrom
ajdapretnar:save-to-excel
Dec 12, 2018
Merged

[ENH] Save Data: Support saving to Excel#3453
janezd merged 10 commits into
biolab:masterfrom
ajdapretnar:save-to-excel

Conversation

@ajdapretnar

Copy link
Copy Markdown
Contributor
Issue

Implements #3096.

Description of changes

Continued from #3306.
Remove support for .ods, since it didn't work.
Implement simple save to Excel, support only .xslx (xlwt didn't work with .xslx).

Includes
  • Code changes
  • Tests
  • Documentation

@ajdapretnar ajdapretnar mentioned this pull request Dec 7, 2018
3 tasks
Comment thread Orange/data/io.py Outdated
data.metas)
headers = cls.header_names(data)
workbook = xlsxwriter.Workbook(filename)
print(filename)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As some would say, this is print.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱

self.widget.filetype = t
self.widget.update_extension()
self.assertEqual(len(self.widget.get_writer_selected().EXTENSIONS), 1)
print(self.widget.get_writer_selected())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to point out that this is a print, too. :)

@codecov

codecov Bot commented Dec 7, 2018

Copy link
Copy Markdown

Codecov Report

Merging #3453 into master will increase coverage by <.01%.
The diff coverage is 95.55%.

@@            Coverage Diff             @@
##           master    #3453      +/-   ##
==========================================
+ Coverage   83.27%   83.27%   +<.01%     
==========================================
  Files         365      365              
  Lines       64305    64326      +21     
==========================================
+ Hits        53549    53568      +19     
- Misses      10756    10758       +2

@codecov

codecov Bot commented Dec 7, 2018

Copy link
Copy Markdown

Codecov Report

Merging #3453 into master will decrease coverage by 0.02%.
The diff coverage is 95.34%.

@@            Coverage Diff             @@
##           master    #3453      +/-   ##
==========================================
- Coverage    83.3%   83.27%   -0.03%     
==========================================
  Files         365      365              
  Lines       64409    64324      -85     
==========================================
- Hits        53654    53566      -88     
- Misses      10755    10758       +3

@lanzagar lanzagar changed the title OWSave: support saving to Excel [ENH] Save Data: Support saving to Excel Dec 7, 2018
@kernc

kernc commented Dec 7, 2018

Copy link
Copy Markdown
Contributor

Implement simple save to Excel, support only .xslx (xlwt didn't work with .xslx).

xlwt only supported the old, stable .xls format.

IIUC, the proposed change now introduces inability to read files of said format.

@janezd janezd merged commit 913ede0 into biolab:master Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants