上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 如果df数据已经设置了索引,现在想增加二级索引,可以用下面的方法 df.reset_index(inplace=True) df.set_index(['index1', 'index2'], inplace=True) # 可以转换内外标签 df.swaplevel() 阅读全文
posted @ 2024-05-24 22:11 笑而不语心自闲 阅读(65) 评论(0) 推荐(0)
摘要: 如题,pandas读取excel时出现"No codepage record..."错误 解决方法: # 用xlrd打开excel文件,指定encoding_override为gbk或者其它编码格式 wb = xlrd.open_workbook_xls(file_name, encoding_ov 阅读全文
posted @ 2024-05-24 22:06 笑而不语心自闲 阅读(239) 评论(0) 推荐(0)
摘要: index2 和 reasons_id 数据显示重复,可以删除列'reasons_id',如果强迫症必须删除索引,可以用下面的方法 # reasons_id total_price ... total_price_统计 people_num_统计 # index1 index2 ... # A 变座 阅读全文
posted @ 2024-05-03 18:55 笑而不语心自闲 阅读(38) 评论(0) 推荐(0)
摘要: C=pd.merge(A,B),merge之后C的行数并不会变。但是A的index丢失了,因为merge之后index是重排的。 解决办法: 方法1: #可以先把A的index保存一下,A、B中含有"col"列 A_index =A.index C=pd.merge(A,B,on="col",how 阅读全文
posted @ 2024-05-03 18:24 笑而不语心自闲 阅读(450) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-04-05 22:09 笑而不语心自闲 阅读(93) 评论(0) 推荐(0)
摘要: 打开dbeaver后,提示(project general master password) 清除方法: 文件-->Project security 阅读全文
posted @ 2024-03-06 21:12 笑而不语心自闲 阅读(1246) 评论(0) 推荐(2)
摘要: element-plus 2.4.1版本 el-tree 设置属性props中的label时,无法指定,例如 <el-tree :data="datas.tree_data" show-checkbox node-key="menu_id" :props="{ // label: function( 阅读全文
posted @ 2024-02-08 17:15 笑而不语心自闲 阅读(369) 评论(0) 推荐(0)
摘要: <template> <el-dialog v-model="dialogVisible" :title="title" :width="width" :close-on-click-modal="false" :close-on-press-escape="false" @close="dialo 阅读全文
posted @ 2024-02-03 17:38 笑而不语心自闲 阅读(637) 评论(0) 推荐(0)
摘要: // require import components const files = require.context("@/components/control", true, /\index.vue$/); // console.log('files:', files.keys()) //file 阅读全文
posted @ 2024-01-28 23:29 笑而不语心自闲 阅读(650) 评论(0) 推荐(0)
摘要: 报错: newsDetailed:1 Access to XMLHttpRequest at 'http://www.py32api.com:8000/users/uploadFile/' from origin 'http://localhost:8080' has been blocked by 阅读全文
posted @ 2023-12-22 10:11 笑而不语心自闲 阅读(230) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页