========
Datasets
========

Datasets enable you to securely upload and update datasets in Anaconda Cloud. You can then provide access to other users, as well as import your datasets to a separate workbook to continue your data analysis from any machine, anytime.

Understanding datasets
======================

Let’s take a look at the different elements and tabs within Datasets.

.. thumbnail:: /img/toolbox/dataset_anatomy.png
    :align: center

#. **Cloud**
    Shows all projects and project contents
#. **Connections**
    Displays datasets previously uploaded to or downloaded from Anaconda Cloud
#. **New Project**
    Create a new project to store and share datasets (sheets and tables) 
#. **New Dataset**
    Create a new dataset and assign it to a project
#. **Filters**
    Apply filters to efficiently locate data in your catalog
#. **My Datasets**
    A collection of all your cloud projects and their nested datasets
#. **User Datasets**
    Projects to which you have access, owned by other individuals 
#. **Organization Datasets**
    Projects to which you have access, owned by organizations
#. **Status Icons**
    Indicates the :ref:`connection status <dc-status-icons>` of your dataset

Creating a project
==================

When you first access Datasets, you are prompted to create a new project. You can think of projects as folders for storing your datasets.

Create a project at any time using the following steps:

#. From the **Cloud** tab, click **+ New Project**.

    .. thumbnail:: /img/toolbox/dataset_new_project.png
        :align: center

#. Enter a unique title for your project and an optional description.
#. Designate the project owner(s) for your project. By default, you are set as the only project owner.

    .. note::
        Administrators and project owners are the only users allowed to edit projects. Anaconda Cloud organization administrators have full permissions for any projects owned by their organization.

#. (Optional) Provide access to your project by :ref:`inviting users <share-data-project>` from one of your organizations. 
#. Click **Save**.

.. _share-data-project:

Sharing a project with other users
==================================

You can share a project to collaborate with others in your organization when creating a new project, or at any time using the following steps:

#. From the **Cloud** tab, click |action| actions beside a project for which you have edit permissions, then click **Edit**.
#. Provide access to your project by inviting users from one of your `organizations <https://anaconda.cloud/profile/organizations>`_. 

    #. Under **Your Organizations**, select an organization. 
    #. Under **Organization Users**, select a user to share your project with.
    #. Choose whether the user should have read or write access to your project. 

#. Click **Save**.

Permissions
-----------

Access to projects and the actions you can perform in them are determined by your permission level for the project. By default, you as the owner of your project have admin permissions; for projects owned by an organization, the admins of that organization have admin permissions for that project.

.. csv-table::
    :file: /csv/data-connections-permissions.csv
    :header-rows: 1

Uploading data
==============

Protect your local datasets and increase their accessibility by saving them in cloud storage. If you experience hardware failure, or need to work on a different device, your projects will be right where you left them! 

Upload sheets and tables to your projects using the following steps:

#. From the **Cloud** tab, click **+ New Dataset**.

    .. thumbnail:: /img/toolbox/dataset_upload.png
        :align: center

#. Under **Data**, choose a range of data manually, a specific table, or an entire sheet.
#. Under **Project**, select a project to house your dataset.
#. Under **Dataset Title**, provide a title for your dataset.
#. Complete the upload by clicking **Save to Cloud**.

You can now see the established connection between your dataset and Anaconda Cloud on the **Connections** tab.

.. thumbnail:: /img/toolbox/dataset_upload_result.png
    :align: center

When you make changes to the dataset, re-upload |reupload| it to update the dataset stored in the cloud.

Downloading data
================

If another user shares a project with you, or you’re working in a separate workbook from where you uploaded a dataset, that dataset appears with an accompanying download |download| icon.

Click download |download| beside the dataset you want to download.
Under **Workbook Placement**, select the sheet where you want to insert the data.
Complete the download by clicking **Download to Workbook**.

.. _dc-status-icons:

Understanding status icons
==========================

Status icons appear by each dataset. Click the icons to perform the following functions:

.. csv-table::
    :file: /csv/data-status-icons.csv
    :header-rows: 1

.. |action| raw:: html

        <svg class="inline" width="1em" height="1em" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
    <path d="M7.5 4C8.325 4 9 3.325 9 2.5C9 1.675 8.325 1 7.5 1C6.675 1 6 1.675 6 2.5C6 3.325 6.675 4 7.5 4Z"/>
    <path d="M7.5 6C6.675 6 6 6.675 6 7.5C6 8.325 6.675 9 7.5 9C8.325 9 9 8.325 9 7.5C9 6.675 8.325 6 7.5 6Z"/>
    <path d="M7.5 11C6.675 11 6 11.675 6 12.5C6 13.325 6.675 14 7.5 14C8.325 14 9 13.325 9 12.5C9 11.675 8.325 11 7.5 11Z"/>
    </svg>

.. |upload| raw:: html

      <svg class="inline" width="1em" height="1em" viewBox="0 0 22 23" xmlns="http://www.w3.org/2000/svg">
      <path 
        d="M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm3.5 7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm1.6 4.9a.56.56 0 1 0 .8-.8l-2-2a.56.56 0 0 0-.8 0l-2 2a.56.56 0 1 0 .8.8l1.1-1.1v2.7a.5.5 0 0 0 1 0v-2.7l1.1 1.1Z" fill="#8c94a6"
      />
    </svg>

.. |big-upload| raw:: html

      <svg class="inline" width="60" height="60" viewBox="0 0 22 23" xmlns="http://www.w3.org/2000/svg">
      <path 
        d="M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm3.5 7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm1.6 4.9a.56.56 0 1 0 .8-.8l-2-2a.56.56 0 0 0-.8 0l-2 2a.56.56 0 1 0 .8.8l1.1-1.1v2.7a.5.5 0 0 0 1 0v-2.7l1.1 1.1Z" fill="#8c94a6"
      />
    </svg>

.. |reupload| raw:: html

      <svg class="inline" width="1em" height="1em" viewBox="0 0 22 23" xmlns="http://www.w3.org/2000/svg">
      <path 
        d="M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm3.5 7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm1.6 4.9a.56.56 0 1 0 .8-.8l-2-2a.56.56 0 0 0-.8 0l-2 2a.56.56 0 1 0 .8.8l1.1-1.1v2.7a.5.5 0 0 0 1 0v-2.7l1.1 1.1Z"
      />
    </svg>
    
.. |big-reupload| raw:: html

      <svg class="inline" width="60" height="60" viewBox="0 0 22 23" xmlns="http://www.w3.org/2000/svg">
      <path 
        d="M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm3.5 7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm1.6 4.9a.56.56 0 1 0 .8-.8l-2-2a.56.56 0 0 0-.8 0l-2 2a.56.56 0 1 0 .8.8l1.1-1.1v2.7a.5.5 0 0 0 1 0v-2.7l1.1 1.1Z"
      />
    </svg>

.. |download| raw:: html

      <svg class="inline" width="1em" height="1em" viewBox="0 0 22 23" xmlns="http://www.w3.org/2000/svg">
      <path 
        d="M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm3.5 16a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9Zm1.6-4.9L14 14.2v-2.7a.5.5 0 0 0-1 0v2.7l-1.1-1.1a.56.56 0 1 0-.8.8l2 2c.22.22.58.22.8 0l2-2a.56.56 0 1 0-.8-.8Z" fill="#8c94a6"
      />
    </svg>

.. |big-download| raw:: html

      <svg class="inline" width="60" height="60" viewBox="0 0 22 23" xmlns="http://www.w3.org/2000/svg">
      <path 
        d="M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm3.5 16a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9Zm1.6-4.9L14 14.2v-2.7a.5.5 0 0 0-1 0v2.7l-1.1-1.1a.56.56 0 1 0-.8.8l2 2c.22.22.58.22.8 0l2-2a.56.56 0 1 0-.8-.8Z" fill="#8c94a6"
      />
    </svg>

.. |big-redownload| raw:: html

      <svg class="inline" width="60" height="60" viewBox="0 0 22 23" xmlns="http://www.w3.org/2000/svg">
      <path 
        d="M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66A5.74 5.74 0 0 0 7.77 13H5.28A3.33 3.33 0 0 1 2 9.62a3.33 3.33 0 0 1 3.28-3.37h.07C5.6 3.9 7.18 2 10 2Zm3.5 16a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9Zm1.6-4.9L14 14.2v-2.7a.5.5 0 0 0-1 0v2.7l-1.1-1.1a.56.56 0 1 0-.8.8l2 2c.22.22.58.22.8 0l2-2a.56.56 0 1 0-.8-.8Z"
      />
    </svg>

.. |big-sync| raw:: html

      <svg class="inline" width="60" height="60" viewBox="0 0 22 23" xmlns="http://www.w3.org/2000/svg">
      <path 
        d="M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm8 11.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-2.85-1.85-2.65 2.64-.65-.64a.5.5 0 0 0-.7.7l1 1c.2.2.5.2.7 0l3-3a.5.5 0 0 0-.7-.7Z" fill="#0cca4a"
      />
    </svg>

.. |big-conflict| raw:: html

      <svg class="inline ___12fm75w f1w7gpdv fez10in fg4l7m0" aria-hidden="true" width="60" height="60" viewBox="0 0 22 23" xmlns="http://www.w3.org/2000/svg">
      <path 
        d="M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm8 11.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-3.8 0 1.15-1.15a.5.5 0 0 0-.7-.7l-1.15 1.14-1.15-1.14a.5.5 0 0 0-.7.7l1.14 1.15-1.14 1.15a.5.5 0 0 0 .7.7l1.15-1.14 1.15 1.14a.5.5 0 0 0 .7-.7l-1.14-1.15Z" fill="#dc3246"
      />
    </svg>