Skip to content

Commit

Permalink
Added an introduction to the reshaping documentation (#7623)
Browse files Browse the repository at this point in the history
* adding an introdcution to reshaping doc

* added an introduction to the reshaping doc

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* made changes based on feedback given

* opened pr again to fix the failing tests

* made new commits to try to fix failing tests and fixed grammar

* made changes based on comments

* changed the spacing

* Add: adds config.yml file to set up different messages for the welcome bot

* made changes to the reshaping documentation file

* Remove blank lines

* remove blank lines

* Remove reference to specific method

* Fix: pinned the sphinx-book-theme version

* Fix: pinned the sphinx-book-theme version 0.3.0

* Fix: changed the sphinx-book-theme version

* Fix: reverted the sphinx-book-theme version

* made empty pr to rerun the ci tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tom Nicholas <[email protected]>
  • Loading branch information
3 people authored Mar 31, 2023
1 parent aa4361d commit 1c81162
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/user-guide/reshaping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
Reshaping and reorganizing data
###############################

These methods allow you to reorganize your data by changing dimensions, array shape, order of values, or indexes.
Reshaping and reorganizing data refers to the process of changing the structure or organization of data by modifying dimensions, array shapes, order of values, or indexes. Xarray provides several methods to accomplish these tasks.

These methods are particularly useful for reshaping xarray objects for use in machine learning packages, such as scikit-learn, that usually require two-dimensional numpy arrays as inputs. Reshaping can also be required before passing data to external visualization tools, for example geospatial data might expect input organized into a particular format corresponding to stacks of satellite images.

Importing the library
---------------------

.. ipython:: python
:suppress:
Expand Down

0 comments on commit 1c81162

Please sign in to comment.