Skip to main content
Skills require a PandasAI Enterprise license. See Enterprise Features for more details or contact us for production use.
Skills allow you to add custom functions on a global level that extend PandasAI’s capabilities beyond standard data analysis. Once a skill is defined using the @pai.skill() decorator, it becomes automatically available across your entire application - whether you’re using pai.chat(), SmartDataframe, or Agent. These custom functions are registered globally and can be used by any PandasAI interface without additional configuration.

Creating a Skill

Skills are created by decorating a Python function with @pai.skill(). The function should include clear documentation with type hints and a descriptive docstring, as the AI uses this information to understand when and how to use the skill.

Basic Skill Definition

Example Skills

Here are some practical examples of skills you can create:

Skills in Action

Once skills are defined, they are automatically available to all PandasAI interfaces. Here’s how to use them with different components:

Skills with pai.chat

Skills with Agent