File size: 2,362 Bytes
279efce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
description: Set up conda environment for data analysis
tags: [python, conda, data-analysis, jupyter, pandas, project, gitignored]
---

You are helping the user set up a conda environment for data analysis.

## Process

1. **Create base environment**
   ```bash
   conda create -n data-analysis python=3.11 -y
   conda activate data-analysis
   ```

2. **Install core data analysis libraries**
   ```bash
   conda install -c conda-forge pandas numpy scipy -y
   ```

3. **Install visualization libraries**
   ```bash
   conda install -c conda-forge matplotlib seaborn plotly -y
   pip install altair
   pip install bokeh
   ```

4. **Install Jupyter ecosystem**
   ```bash
   conda install -c conda-forge jupyter jupyterlab ipywidgets -y
   pip install jupyterlab-git
   pip install jupyterlab-lsp
   ```

5. **Install statistical and ML libraries**
   ```bash
   conda install -c conda-forge scikit-learn statsmodels -y
   pip install scipy
   pip install pingouin        # Statistics
   ```

6. **Install data processing tools**
   ```bash
   conda install -c conda-forge openpyxl xlrd -y  # Excel support
   pip install pyarrow fastparquet  # Parquet support
   pip install sqlalchemy      # Database connectivity
   pip install beautifulsoup4  # Web scraping
   pip install requests        # HTTP requests
   ```

7. **Install data manipulation tools**
   ```bash
   pip install polars          # Fast DataFrame library
   pip install dask            # Parallel computing
   pip install vaex            # Big data processing
   ```

8. **Install database drivers**
   ```bash
   pip install psycopg2-binary  # PostgreSQL
   pip install pymongo          # MongoDB
   pip install redis            # Redis
   ```

9. **Install development tools**
   ```bash
   pip install black           # Code formatting
   pip install pylint          # Linting
   pip install ipdb            # Debugging
   ```

10. **Configure Jupyter extensions**
   - Enable useful extensions
   - Set up theme preferences
   - Configure autosave

11. **Create example notebook**
   - Offer to create `~/notebooks/data-analysis-template.ipynb` with common imports

## Output

Provide a summary showing:
- Environment name and setup status
- Installed libraries grouped by category
- Jupyter Lab configuration
- Example import statements
- Suggested workflows
- Links to documentation