The Python Analysis Tool is one of Ana’s core capabilities, providing powerful data processing and analysis through Python code. This tool is automatically triggered in Analyze Mode when your questions require computational analysis.

When Python Writing is Triggered

Ana automatically switches to Python analysis when your requests involve:

  • Any calculations (even simple math)
  • Statistical analysis and summaries
  • Pattern identification in data
  • Data aggregation or grouping
  • Data filtering or transformation
  • Data preparation for visualization

What You’ll See During Python Writing

When Ana uses Python for analysis, you’ll observe:

  • Python code execution results
  • Data analysis outputs
  • Statistical summaries
  • Memory usage indicators
  • Computation progress updates

The Python environment operates within a 2GB memory limit and typically processes 5-20 lines of code per execution.

Supported Python Libraries

Ana comes pre-configured with a comprehensive set of data science libraries:

CategoryLibraryDescription
Data ProcessingpandasData manipulation and analysis
numpyNumerical computing with arrays
scipyScientific and technical computing
pyarrowHigh-performance data serialization and transport
tabulatePretty-print tabular data
Statistical AnalysisstatsmodelsStatistical modeling and testing
scikit-learnMachine learning and statistical tools
sympySymbolic mathematics
VisualizationmatplotlibPlotting and data visualization
seabornStatistical data visualization
cartopyGeospatial plotting
foliumInteractive maps
OptimizationortoolsOperations research and combinatorial optimization
pulpLinear programming and optimization
GeospatialshapelyGeometric objects and operations
pygeosGeometric operations with speed
Process Miningpm4pyProcess mining and workflow analysis
Utilitiesgrpcio-toolsgRPC tools for protocol buffers
protobufProtocol buffers serialization
PillowImage processing