Install
openclaw skills install director-data-analysisAnalyze CSV/Excel files to extract insights, generate statistics, create charts, and produce summaries. Use when user wants to (1) upload or analyze spreadsheet data, (2) get insights from data files, (3) generate charts or visualizations, (4) calculate statistics or trends, (5) clean or transform data.
openclaw skills install director-data-analysisAnalyze data files (CSV, Excel) and produce actionable insights.
Read the file - Use appropriate library:
csv module or pandas.read_csv()pandas.read_excel() with openpyxl engineExplore the data - Get shape, columns, dtypes, missing values
Generate insights - Calculate:
Create visualizations - Use matplotlib:
Summarize - Write findings in plain English
import pandas as pd
df = pd.read_csv('sales.csv')
summary = {
'total_revenue': df['amount'].sum(),
'avg_order': df['amount'].mean(),
'top_products': df['product'].value_counts().head(5),
'monthly_trend': df.groupby(pd.to_datetime(df['date']).dt.month)['amount'].sum()
}
demographics = df.groupby('segment').agg({
'age': ['mean', 'median'],
'income': ['mean', 'std'],
'id': 'count'
})
df['date'] = pd.to_datetime(df['date'])
monthly = df.resample('M', on='date')['value'].sum()
Always include:
df.fillna(0) or df.dropna()pd.to_datetime(..., errors='coerce')