---
title: Calculation Python Environment Data Block
description: "*The Calculation Python Environment (Calculation_Python_Env) Data Block should not be edited. To import additional libraries or modules, create a new Configuration Data Block.* The Imports (Imports) Data Block defines the required Python libraries to be imported for the script. Each…"
url: "https://learn.assette.com/docs/calculation-python-environment-data-block/"
updated: "2025-01-29"
category: Developers / Data Blocks / Data Blocks by Category / Configuration Data Blocks
---

# Calculation Python Environment Data Block

*The Calculation Python Environment (Calculation_Python_Env) Data Block should not be edited. To import additional libraries or modules, create a new Configuration Data Block.*

The Imports (Imports) Data Block defines the required Python libraries to be imported for the script. Each library is imported with or without an alias, depending on its usage within the code. This Data Block ensures that the necessary libraries are available for handling data manipulation, date operations, JSON parsing, and other tasks. This Data Block is not edited.

## General Info

*The following table shows the default fields of the Data Block*.

| Field | Value |
| --- | --- |
| Name | Calculation_Python_Env |
| Block Category | Configuration |
| Block Type | Python Environment |
| Data Category | None |
| Output Type | Setting |
| Editable | True |

## Dependencies

*The following table shows the default dependencies of the Data Block*.

None

## Columns

None

## Example Definition

```
{
    "imports": [
        {"name": "pandas","as": "pd"},
        {"name": "numpy","as": "np"},
        {"name": "datetime","as": ""},
        {"name": "json"},
        {"name": "calendar","as": ""},
        {"name": "functools","as": "ft"}
    ]
}
```

## Example Request

N/A

## Example Response

N/A
