Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sas-] make XptSheet rows be list instead of tuple #2365

Merged
merged 2 commits into from
May 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Next Next commit
[sas-] make XptSheet rows be list instead of tuple
  • Loading branch information
midichef committed Mar 27, 2024
commit 5631ad962c3ec830de1664ffc2e6877dce04e4d5
4 changes: 3 additions & 1 deletion visidata/loaders/sas.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def iterload(self):
for i, var in enumerate(self.rdr._variables):
self.addColumn(ColumnItem(var.name, i, type=float if var.numeric else str))

yield from self.rdr
# a visidata row must not be a tuple, so convert each tuple to a list
for t in self.rdr:
yield list(t)


class SasSheet(Sheet):
Expand Down