Skip to content

Commit 1c81162

Browse files
nishtha981pre-commit-ci[bot]TomNicholas
authored
Added an introduction to the reshaping documentation (#7623)
* 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]>
1 parent aa4361d commit 1c81162

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/user-guide/reshaping.rst

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
Reshaping and reorganizing data
55
###############################
66

7-
These methods allow you to reorganize your data by changing dimensions, array shape, order of values, or indexes.
7+
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.
8+
9+
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.
10+
11+
Importing the library
12+
---------------------
813

914
.. ipython:: python
1015
:suppress:

0 commit comments

Comments
 (0)