学习python那些年的踩坑记录

本文记录了学习Python过程中遇到的常见问题,包括xarray的路径错误、pandas的未说明问题、matplotlib的负号显示和图片占满画布设置,以及如何设置中文和英文字体。通过解决这些问题,可以更好地理解和使用这些库。
摘要由CSDN通过智能技术生成

一、xarray

  1. 路径错误
ds = xr.open_dataset('F:\BaiduNetdiskWorkspace\code\test\3B-HHR-E.MS.MRG.3IMERG.20201201-S000000-E002959.0000.V06B.HDF5.SUB.nc4')
ds

ValueError:did not find a match in any of xarray's currently installed IO backends ['netcdf4', 'scipy']. Consider explicitly selecting one of the installed engines via the ``engine`` parameter, or installing additional IO dependencies, see: https://docs.xarray.dev/en/stable/getting-started-guide/installing.html https://docs.xarray.dev/en/stable/user-guide/io.html
解决办法:
路径前边加r,或者将路径中的 \ 改写为 //

ds = xr.open_dataset(r'F:\BaiduNetdiskWorkspace\code\test\3B-HHR-E.MS.MRG.3IMERG.20201201-S000000-E002959.0000.V06B.HDF5.SUB.nc4')
ds

二、pandas

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值