![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
yiweiwei516
这个作者很懒,什么都没留下…
展开
-
plt画直方图
plt画直方图原创 2023-03-02 15:39:20 · 327 阅读 · 0 评论 -
字典画图超详细参考链接
字典画图超详细参考链接原创 2023-02-27 16:35:02 · 163 阅读 · 0 评论 -
sklearn常用工具
sklearn常用工具原创 2022-10-11 15:33:59 · 255 阅读 · 0 评论 -
csv读取报错
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 3114: invalid continuation byte原创 2022-08-29 17:24:24 · 303 阅读 · 0 评论 -
keras报错
ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context' (/opt/conda/envs/Python3/lib/python3.7/site-packages/tensorflow_core/python/eager/context.py)原创 2022-08-24 20:44:35 · 446 阅读 · 0 评论 -
redis写入查找
redis原创 2022-08-17 08:00:01 · 516 阅读 · 0 评论 -
df转csv去掉index列
df转csv去掉index列原创 2022-08-03 14:46:07 · 745 阅读 · 0 评论 -
pandas读取大批量数据报错情况,处理方法
pandas.read_table报错情况处理原创 2022-06-01 16:58:21 · 426 阅读 · 0 评论 -
python读写模块
1.查看当前路径import os #导入os模块cur_loc= os.getcwd() #调用os模块的 getcwd()方法。返回值为程序工作的当前目录print(‘当前目录为:’, cur_loc) #打印目录2.创建目录path=os.getcwd()+'/'+'hello'if not os.path.exists(path) : #没有这个文件目录则新建一个 os.mkdir(path ) #创建G盘文件名为 hello 的文原创 2022-03-25 11:42:27 · 1114 阅读 · 0 评论 -
python中lambda
对list每个元素相同操作参考链接原创 2022-01-13 10:05:52 · 143 阅读 · 0 评论 -
python拼接
python拼接1.纯拼接# num是一个list,元素类型为intnum = [1, 2, 3, 4, 5, 6] str = ','.join(str(i) for i in num) print(str)2.split后拼接valid_content_list=list(valid_content)content_ids=[item.split('&&')[0] for item in valid_content_list]str_x = ','.join(st原创 2022-01-13 10:03:36 · 152 阅读 · 0 评论 -
ipynb转为py文件
jupyter nbconvert myprogram.ipynb --to script原创 2022-01-04 15:08:51 · 925 阅读 · 0 评论 -
python日志
import logginglogging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)原创 2021-12-29 11:52:59 · 347 阅读 · 1 评论 -
dataframe小技巧
dataframe原创 2021-12-17 15:33:15 · 1368 阅读 · 0 评论 -
json的一些简介
json.dumps json.loads一些代码小实现python读数据原创 2021-11-03 18:02:32 · 44 阅读 · 0 评论