From 1c81162755457b3f4dc1f551f0321c75ec9daf6c Mon Sep 17 00:00:00 2001 From: nishtha981 <92522516+nishtha981@users.noreply.github.com> Date: Fri, 31 Mar 2023 20:53:30 +0530 Subject: [PATCH] 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 --- doc/user-guide/reshaping.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/user-guide/reshaping.rst b/doc/user-guide/reshaping.rst index 95bf21a71b0..2281106e7ec 100644 --- a/doc/user-guide/reshaping.rst +++ b/doc/user-guide/reshaping.rst @@ -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: