> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab-6/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-science-lab-6/notebook-operations/data/reading-data.md).

# Reading Data

## Reading the Added Data inside DSL Notebook

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark> Using the **get\_data** function datasets and data sandbox files (csv & xlsx files) can be read.*
{% endhint %}

* Add a new ***Code cell*** to Notebook or access an empty Code cell.
* Select a dataset from the **Data** tab.
* The ***get\_data*** function appears in the code cell.

<figure><img src="/files/v7VJPVzrAkUMSaQOmizH" alt=""><figcaption></figcaption></figure>

* Provide the df (DataFrame) to print the data from the selected Dataset. A Dataset can be an added dataset, data sandbox file, or feature store.
* Run the cell.

<figure><img src="/files/27nAjetox1fCXyPKcVSk" alt=""><figcaption></figcaption></figure>

* The Data preview appears below after the cell run is completed.

<figure><img src="/files/UC05szEXL2zAvVrQ8J85" alt=""><figcaption></figcaption></figure>

## Project Level Data Tab&#x20;

The Data Sets/ Sandbox files/ Feature Stores added to a Data Science Notebook will also be listed under the Data tab provided under the same project. Hence, the added datasets will be available for all the Data Science Notebooks created or imported under the same project.

<figure><img src="/files/AyGaB8oiB5N9X00tmj6A" alt=""><figcaption></figcaption></figure>

## Reading Multiple Sheets inside an Excel Sheet

{% hint style="success" %}
*Check out the illustration to read multiple sheets in a Notebook cell.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhFEvs46BuaaHAKNDSR6T%2Fuploads%2FrVvzgfDsoNEeDmzWDVb1%2FConsume%20in%20notebook%20cells.mp4?alt=media&token=64094e03-0cf9-4449-aff5-2cc8123d421b>" %}

* Add an Excel file with multiple sheets to a DS Project.

* Insert a Markdown cell with the names of the Excel sheets.

* Insert a new code cell.

  <figure><img src="/files/kXpWEbVBno3omJuCx7iD" alt=""><figcaption></figcaption></figure>

* Use a checkbox next to read data.&#x20;

  <figure><img src="/files/vZ9lUKitadz4rdvokoOy" alt=""><figcaption></figcaption></figure>

* The ***get\_data*** function in the code cell.

* Run the code cell.

  <figure><img src="/files/jLa9B9w0BIauDj4EKPsJ" alt=""><figcaption></figcaption></figure>

* The data preview will appear below.

  <figure><img src="/files/eOXsDdPj3e55KuJ75lLf" alt=""><figcaption></figcaption></figure>

* Select another datasheet name and copy it from the markdown cell.

  <figure><img src="/files/4C99IQk4kqek8854O338" alt=""><figcaption></figcaption></figure>

* Paste the copied datasheet name in the code cell that contains the ***get\_data*** function.

  <figure><img src="/files/N1zTuR5IztnW3n1Z5ybx" alt=""><figcaption></figcaption></figure>

* Run the code cell.

* The data preview will be displayed below.       &#x20;

<figure><img src="/files/IOfuJX6I5uwiPe5ty2Us" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bdb.ai/data-science-lab-6/notebook-operations/data/reading-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
