C:\Users\hx>pip install pandas
Collecting pandas
Using cached pandas-2.2.2-cp39-cp39-win_amd64.whl (11.6 MB)
Collecting pytz>=2020.1
Using cached pytz-2024.1-py2.py3-none-any.whl (505 kB)
Collecting tzdata>=2022.7
Downloading tzdata-2024.1-py2.py3-none-any.whl (345 kB)
|████████████████████████████████| 345 kB 8.9 kB/s
Collecting python-dateutil>=2.8.2
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Collecting numpy>=1.22.4
Downloading numpy-2.0.1-cp39-cp39-win_amd64.whl (16.6 MB)
|████████████████████████████████| 16.6 MB 16 kB/s
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/six/
Collecting six>=1.5
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, tzdata, pytz, python-dateutil, numpy, pandas
Successfully installed numpy-2.0.1 pandas-2.2.2 python-dateutil-2.9.0.post0 pytz-2024.1 six-1.16.0 tzdata-2024.1
C:\Users\hx>
结果
E:\python3\step\python.exe C:\Users\hx\PycharmProjects\tets02local\pythonProject1\读取系统文件信息.py
a1 a2 a3 a4
0 b1 b2 b3 b4
1 c1 c2 c3 c4
a1 a2 a3 a4
0 b1 b2 b3 b4
1 c1 c2 c3 c4
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 2 entries, 0 to 1
Data columns (total 4 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 a1 2 non-null object
1 a2 2 non-null object
2 a3 2 non-null object
3 a4 2 non-null object
dtypes: object(4)
memory usage: 192.0+ bytes
None
a1 a2 a3 a4
count 2 2 2 2
unique 2 2 2 2
top b1 b2 b3 b4
freq 1 1 1 1
进程已结束,退出代码为 0