pandas的一个小应用

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

  • 14
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值