上一页 1 2 3 4 5 6 7 8 ··· 99 下一页
摘要: use this may help you <div class="form-group"> <div class="fileUpload btn btn-primary"> <span>File input</span> <input type="file" id="exampleInputFil 阅读全文
posted @ 2023-08-05 19:44 Oops!# 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 使用命令:os.system(‘python file_name.py’) 解释:os.system是执行当前的系统命令 1、拿windows系统举例: # 由于ipconfig/all在windows中是查看ip地址 # 所以将此命令运行在os.system中,即可查看系统的ip地址等信息 imp 阅读全文
posted @ 2023-08-04 16:08 Oops!# 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 为什么要有.gitignore文件 项目中经常会生成一些Git系统不需要追踪(track)的文件。典型的是在编译生成过程中 产生的文件或是编程器生成的临时备份文件。当然,你不追踪(track)这些文件,可以 平时不用"git add"去把它们加到索引中。 但是这样会很快变成一件烦人的事,你发现项目中 阅读全文
posted @ 2023-08-04 15:05 Oops!# 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 在网上看了很多说Django如何使用本地css/js的文章, 但都不能用 今天终于找到一个可以用的, 记录下 在manager.py同层级下创建static文件夹, 里面放上css , js, image等文件或者文件夹 我的文件夹层级 然后很简单,只需在settings.py中进行设置就行, 在末 阅读全文
posted @ 2023-08-04 11:10 Oops!# 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 3 You can use pandas.ExcelFile to have a peek at the sheet names, then select the sheets to keep with any method (here your regex), finally load with  阅读全文
posted @ 2023-08-04 11:06 Oops!# 阅读(26) 评论(0) 推荐(0) 编辑
摘要: In this article, we will discuss getting the ceil and floor values of the Pandas Dataframe. First, Let’s create a dataframe. Example: Python3 # import 阅读全文
posted @ 2023-08-03 14:09 Oops!# 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 通过模型来处理上传的文件¶ 如果想要在 FileField 上的 Model 保存文件,使用 ModelForm 会让这一过程变得简单。当调用 form.save() 时,文件对象将会被保存在对相应 FileField 的 upload_to 参数所指定的地方: from django.http i 阅读全文
posted @ 2023-08-01 11:03 Oops!# 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 在操作pandas的DataFrame的时候,常常会遇到某些列是字符串,某一些列是数值的情况,如果直接使用df_obj.apply(sum)往往会出错使用如下方式即可对其中某一列进行求和 dataf_test1['diff'].sum() // diff为要求和的列 阅读全文
posted @ 2023-07-18 17:17 Oops!# 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 原本的数据类型凌乱不按照日期排序,不利于数据分析 import pandas as pd#读取文件数据df = pd.read_csv('clientinfo-截止2019-12-20:00:00.csv')#按照列值排序data=df.sort_values(by="createtime" , a 阅读全文
posted @ 2023-07-18 17:15 Oops!# 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 如何用python中pandas模块在csv文件中添加表头 话不多说,直接上代码: python 复制代码 import pandas as pd df = pd.read_csv('tf.csv',header=None,names=['a','b','c','d','e','f','g','h' 阅读全文
posted @ 2023-07-18 17:06 Oops!# 阅读(941) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 99 下一页