> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab-3/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-3/project/tabs-for-a-data-science-lab-project/tabs-for-pyspark-environment/dataset/dataset-list-page/data-preparation.md).

# Data Preparation

Data preparation is the process of collecting, cleaning, and transforming raw data into a format that can be easily analyzed and used for various applications.

Data Preparation involves gathering, refining, and converting raw data is a critical step in data analysis and machine learning, as the quality and accuracy of the data used directly impact the accuracy and reliability of the results. The data preparation is to ensure that the data is accurate, complete, consistent, and relevant to the analysis. By using this action, the data scientist can make more informed decisions, extract valuable insights, and unveil concealed trends and patterns within the raw data.

{% hint style="info" %} <mark style="color:green;">Please Note</mark>*: The BDB Data Science Lab provides an option to access this functionality on the Dataset List page.*
{% endhint %}

* Navigate to the Dataset list page.
* Select a Dataset from the list.
* Click the ***Data Preparation*** icon.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FL1W11sPIomHtbHxzS4Wt%2Fimage.png?alt=media&amp;token=17449cdd-fcb6-4d2a-9263-3c1c21b041e4" alt=""><figcaption><p><em><strong>Data Preparation icon for a Dataset</strong></em></p></figcaption></figure>

* The ***Data Preparation*** page opens displaying the dataset in the grid format.
* Apply the required transforms on the data set. E.g., ***Auto Prep*** option is applied on the displayed Dataset (The user can also use any transformation using the ***Transforms*** tab).

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FG726LMdumxILCFdtrWVp%2Fimage.png?alt=media&amp;token=9c5663dc-f1d3-4e14-81e7-fb6e351ae8b1" alt=""><figcaption></figcaption></figure>

* Since Auto Prep is selected the below screen appears.&#x20;
* Select or reject the listed transforms by using the checkbox under the Transformation List that appears for the Auto Prep option.
* Click the ***Proceed*** option.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2Fte2MXioxe3hB2NXAVa8f%2Fimage.png?alt=media&amp;token=146c6385-f258-41cc-9d92-756b024c204d" alt=""><figcaption></figcaption></figure>

* Provide a name for the ***Data Preparation***.
* Click the ***Back*** icon to go back.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FqcmjT8kFKitzLtcP3XfR%2Fimage.png?alt=media&amp;token=bd8f4690-a5b8-44d5-8797-90e4ea179483" alt=""><figcaption></figcaption></figure>

* While clicking the ***Back*** icon, a notification message appears to inform the users that the data preparation has been saved.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FbzXUYlRt0bLYDurL9Aot%2Fimage.png?alt=media&amp;token=c6431fe2-add8-46c0-b192-c931b62f45b4" alt=""><figcaption></figcaption></figure>

* The user gets redirected to the ***Dataset*** list page.&#x20;
* Select the ***Dataset*** for which the Preparation was saved.&#x20;
* Click the ***Data Preparation*** icon for the same Dataset.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FgW0F8yy20euCuBNe8DiM%2Fimage.png?alt=media&amp;token=54e94731-5359-4bdf-87e9-616c3006eb65" alt=""><figcaption></figcaption></figure>

* While opening the Dataset it redirects to the ***Preparation List*** displaying the saved data preparation.

<figure><img src="https://2587201349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBLGYLEkBUnc8nVEBAuEI%2Fuploads%2FEMj0bGsGI8ls1L7ih9E4%2Fimage.png?alt=media&amp;token=d6d8c1a7-d366-43ca-9bda-7a9580a3d8aa" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note</mark>:*&#x20;

* *The details on how to use the Data Preparation option are described in the **Data Preparation** section under the Data Center.*
* *Refer the* [***Data Science Lab Quick Start Flow*** ](https://docs.bdb.ai/data-science-lab-3/data-science-lab-quick-start-flow)*page to get an overview of the **Data Science Lab** module in nutshell.*&#x20;
  {% endhint %}
