Can't call shape on the output of select()
MEMBER
Indeed that's a typo, do you want to open a PR to fix it?
2020-12-23T10:09:30Z
https://github.com/huggingface/datasets/issues/1622#issuecomment-750076951
https://api.github.com/repos/huggingface/datasets/issues/1622
MDEyOklzc3VlQ29tbWVudDc1MDA3Njk1MQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/750076951/reactions
2020-12-23T10:09:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/750076951
https://avatars.githubusercontent.com/u/7353373?v=4
https://api.github.com/users/thomwolf/events{/privacy}
https://api.github.com/users/thomwolf/followers
https://api.github.com/users/thomwolf/following{/other_user}
https://api.github.com/users/thomwolf/gists{/gist_id}
https://github.com/thomwolf
thomwolf
MDQ6VXNlcjczNTMzNzM=
https://api.github.com/users/thomwolf/orgs
https://api.github.com/users/thomwolf/received_events
https://api.github.com/users/thomwolf/repos
https://api.github.com/users/thomwolf/starred{/owner}{/repo}
https://api.github.com/users/thomwolf/subscriptions
User
https://api.github.com/users/thomwolf
public
CONTRIBUTOR
Yes, created a PR
2020-12-23T13:37:12Z
https://github.com/huggingface/datasets/issues/1622#issuecomment-750303842
https://api.github.com/repos/huggingface/datasets/issues/1622
MDEyOklzc3VlQ29tbWVudDc1MDMwMzg0Mg==
https://api.github.com/repos/huggingface/datasets/issues/comments/750303842/reactions
2020-12-23T13:37:12Z
https://api.github.com/repos/huggingface/datasets/issues/comments/750303842
https://avatars.githubusercontent.com/u/47183162?v=4
https://api.github.com/users/noaonoszko/events{/privacy}
https://api.github.com/users/noaonoszko/followers
https://api.github.com/users/noaonoszko/following{/other_user}
https://api.github.com/users/noaonoszko/gists{/gist_id}
https://github.com/noaonoszko
noaonoszko
MDQ6VXNlcjQ3MTgzMTYy
https://api.github.com/users/noaonoszko/orgs
https://api.github.com/users/noaonoszko/received_events
https://api.github.com/users/noaonoszko/repos
https://api.github.com/users/noaonoszko/starred{/owner}{/repo}
https://api.github.com/users/noaonoszko/subscriptions
User
https://api.github.com/users/noaonoszko
public
I get the error `TypeError: tuple expected at most 1 argument, got 2` when calling `shape` on the output of `select()`.
It's line 531 in shape in arrow_dataset.py that causes the problem:
``return tuple(self._indices.num_rows, self._data.num_columns)``
This makes sense, since `tuple(num1, num2)` is not a valid call.
 
Full code to reproduce:

```python
dataset = load_dataset("cnn_dailymail", "3.0.0")
train_set = dataset["train"]
t = train_set.select(range(10))
print(t.shape)