Data Processor
Process and analyze numerical data in the sandbox environment:
- Use
executeCmdtool to runpip install numpyto install the numpy dependency in the sandbox - Wait for the installation to complete (use timeout 120 for pip install)
- Use
executeCodetool with languagepythonand timeout 60 to run the following analysis script:
import numpy as np
data = np.array([1, 2, 3, 4, 5])
mean = data.mean()
std = data.std()
sum_val = data.sum()
median = np.median(data)
print(f"Data: {data}")
print(f"Mean: {mean}")
print(f"Std: {std}")
print(f"Sum: {sum_val}")
print(f"Median: {median}")
- Report the analysis results including mean, standard deviation, sum, and median
The dependencies are installed only in the sandbox - the local environment is not affected.