---
title: Python Data Calculation Modules Data Block
description: "*The Python Data Calculation Modules (PythonDataCalculationModules) Data Block is an Configuration Data Block and is not edited. The following details are informational only.* The Python Data Calculation Modules (PythonDataCalculationModules) Data Block defines a set of Python libraries to be imported…"
url: "https://learn.assette.com/docs/python-data-calculation-modules-data-block/"
updated: "2024-09-19"
category: Developers / Data Blocks / Data Blocks by Category / Configuration Data Blocks
---

# Python Data Calculation Modules Data Block

*The Python Data Calculation Modules (PythonDataCalculationModules) Data Block is an Configuration Data Block and is not edited. The following details are informational only.*

The Python Data Calculation Modules (PythonDataCalculationModules) Data Block defines a set of Python libraries to be imported into a script. It includes common libraries like `pandas`, `numpy`, `json`, `datetime`, and `calendar`, each with their respective aliases. The Python Data Calculation Modules (PythonDataCalculationModules) Data Block ensures these libraries are available for use in the script under their specified aliases. This Data Block is not edited. If additional Python libraries or modules need to be imported create a new Data Block instead.

Libraries Imported:

- **pandas** is imported as `pd` for data manipulation and analysis.
- **numpy** is imported as `np` for numerical operations.
- **json** is imported as `json` for handling JSON data.
- **datetime** is imported as `datetime` for working with dates and times.
- **calendar** is imported as `cal` for managing calendar-related operations.

## General Info

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

| Field | Value |
| --- | --- |
| Name | PythonDataCalculationModules |
| Block Category | Configuration |
| Block Type | Python Environment |
| Data Category | None |
| Output Type | None |

## Dependencies

None

## Columns

None

## Example Definition

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