Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ If you would like to work on any of the open Issues:
it with `pip uninstall datasets` before reinstalling it in editable
mode with the `-e` flag.)

5. Develop the features on your branch. If you want to add a dataset see more in-detail intsructions in the section [*How to add a dataset*](#how-to-add-a-dataset). Alternatively, you can follow the steps to [add a dataset](https://huggingface.co/docs/datasets/add_dataset.html) and [share a dataset](https://huggingface.co/docs/datasets/share_dataset.html) in the documentation.
5. Develop the features on your branch. If you want to add a dataset see more in-detail instructions in the section [*How to add a dataset*](#how-to-add-a-dataset). Alternatively, you can follow the steps to [add a dataset](https://huggingface.co/docs/datasets/add_dataset.html) and [share a dataset](https://huggingface.co/docs/datasets/share_dataset.html) in the documentation.

6. Format your code. Run black and isort so that your newly added files look nice with the following command:

Expand Down
4 changes: 2 additions & 2 deletions src/datasets/arrow_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2842,7 +2842,7 @@ def to_dict(self, batch_size: Optional[int] = None, batched: bool = False) -> Un
Args:
batched (``bool``): Set to :obj:`True` to return a generator that yields the dataset as batches
of ``batch_size`` rows. Defaults to :obj:`False` (returns the whole datasetas once)
bacth_size (Optional ``int``): The size (number of rows) of the batches if ``batched`` is `True`.
batch_size (Optional ``int``): The size (number of rows) of the batches if ``batched`` is `True`.
Defaults to :obj:`datasets.config.DEFAULT_MAX_BATCH_SIZE`.

Returns:
Expand Down Expand Up @@ -2907,7 +2907,7 @@ def to_pandas(
Args:
batched (``bool``): Set to :obj:`True` to return a generator that yields the dataset as batches
of ``batch_size`` rows. Defaults to :obj:`False` (returns the whole datasetas once)
bacth_size (Optional ``int``): The size (number of rows) of the batches if ``batched`` is `True`.
batch_size (Optional ``int``): The size (number of rows) of the batches if ``batched`` is `True`.
Defaults to :obj:`datasets.config.DEFAULT_MAX_BATCH_SIZE`.

Returns:
Expand Down