1 前置知识
- Pandas支持的数据结构
- Series 类似一维数组
- DataFrame 表格型数据结构
- 常用的数据分析开源库
- Pandas、Numpy、Matplolib、Seaborn、Sklearn
- 虚拟环境创建
![](https://i-blog.csdnimg.cn/direct/8e28c3ddee9a45f294b770296d770c73.png)
(base) C:\Users\ning>conda env list
# conda environments:
#
base * D:\ProgramData\anaconda3
(base) C:\Users\ning>conda create -n llm python=3.10
Channels:
- defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done
## Package Plan ##
environment location: C:\Users\ning\.conda\envs\llm
added / updated specs:
- python=3.10
The following packages will be downloaded:
package | build
---------------------------|-----------------
bzip2-1.0.8 | h2bbff1b_6 90 KB
libffi-3.4.4 | hd77b12b_1 122 KB
openssl-3.0.14 | h827c3e9_0 7.8 MB
pip-24.2 | py310haa95532_0 2.5 MB
python-3.10.14 | he1021f5_1 15.9 MB
setuptools-72.1.0 | py310haa95532_0 2.5 MB
sqlite-3.45.3 | h2bbff1b_0 973 KB
tk-8.6.14 | h0416ee5_0 3.5 MB
tzdata-2024a | h04d1e81_0 116 KB
vc-14.40 | h2eaa2aa_0 10 KB
vs2015_runtime-14.40.33807 | h98bb1dd_0 1.3 MB
wheel-0.43.0 | py310haa95532_0 136 KB
xz-5.4.6 | h8cc25b3_1 609 KB
zlib-1.2.13 | h8cc25b3_1 131 KB
------------------------------------------------------------
Total: 35.6 MB
The following NEW packages will be INSTALLED:
bzip2 pkgs/main/win-64::bzip2-1.0.8-h2bbff1b_6
ca-certificates pkgs/main/win-64::ca-certificates-2024.7.2-haa95532_0
libffi pkgs/main/win-64::libffi-3.4.4-hd77b12b_1
openssl pkgs/main/win-64::openssl-3.0.14-h827c3e9_0
pip pkgs/main/win-64::pip-24.2-py310haa95532_0
python pkgs/main/win-64::python-3.10.14-he1021f5_1
setuptools pkgs/main/win-64::setuptools-72.1.0-py310haa95532_0
sqlite pkgs/main/win-64::sqlite-3.45.3-h2bbff1b_0
tk pkgs/main/win-64::tk-8.6.14-h0416ee5_0
tzdata pkgs/main/noarch::tzdata-2024a-h04d1e81_0
vc pkgs/main/win-64::vc-14.40-h2eaa2aa_0
vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.40.33807-h98bb1dd_0
wheel pkgs/main/win-64::wheel-0.43.0-py310haa95532_0
xz pkgs/main/win-64::xz-5.4.6-h8cc25b3_1
zlib pkgs/main/win-64::zlib-1.2.13-h8cc25b3_1
Proceed ([y]/n)? y
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate llm
#
# To deactivate an active environment, use
#
# $ conda deactivate
(base) C:\Users\ning>conda activate llm
(llm) C:\Users\ning>conda env list
# conda environments:
#
llm * C:\Users\ning\.conda\envs\llm
base D:\ProgramData\anaconda3
(llm) C:\Users\ning>pip list show
Package Version
---------- -------
pip 24.2
setuptools 72.1.0
wheel 0.43.0
(llm) C:\Users\ning>conda deactivate llm
ArgumentError: deactivate does not accept arguments
remainder_args: ['llm']
(llm) C:\Users\ning>conda deactivate llm
ArgumentError: deactivate does not accept arguments
remainder_args: ['llm']
(llm) C:\Users\ning>conda activate base
(base) C:\Users\ning>conda remove -n llm
CondaValueError: no package names supplied,
try "conda remove -h" for more details
(base) C:\Users\ning>conda remove -n llm --all
Remove all packages in environment C:\Users\ning\.conda\envs\llm:
## Package Plan ##
environment location: C:\Users\ning\.conda\envs\llm
The following packages will be REMOVED:
bzip2-1.0.8-h2bbff1b_6
ca-certificates-2024.7.2-haa95532_0
libffi-3.4.4-hd77b12b_1
openssl-3.0.14-h827c3e9_0
pip-24.2-py310haa95532_0
python-3.10.14-he1021f5_1
setuptools-72.1.0-py310haa95532_0
sqlite-3.45.3-h2bbff1b_0
tk-8.6.14-h0416ee5_0
tzdata-2024a-h04d1e81_0
vc-14.40-h2eaa2aa_0
vs2015_runtime-14.40.33807-h98bb1dd_0
wheel-0.43