Backwards Compatibility
SmartDataframe
Legacy documentation for SmartDataframe class
This documentation page is for backwards compatibility. For new projects, we recommend using the new semantic dataframes.
Migrate SmartDataframe
To migrate from SmartDataframe to the new semantic dataframes:
- Replace SmartDataframe imports with semantic dataframe imports
- Update configuration to use
pai.config.set()
- Use the new
.chat()
method syntax
Example migration:
SmartDataframe (Legacy)
The SmartDataframe class was the previous way to create dataframes in PandaAI. It provided similar functionality to the current semantic dataframes but with a different API.
Basic Usage
Configuration
SmartDataframe accepted configuration options through its constructor:
Was this page helpful?