赞
踩
在工作中总会遇到各种各样的bug,有时不清楚出错状况就会花费很久的时间。故想将工作中遇到的问题一一列举出来,以防下次仍遇到相同的问题。
settings->Tools->Python Scientific->Show plots in toolwindow将√去除
如下图所示:
勾选View -> scientific Mode
File -> Settings -> Tools -> python scientific ->Show plots in toolwindow(去掉勾选)
结果:
解决方案:
点开有个 Edit configuration…
或者在Run->Edit configuration…
选择要更改的.py文件的configuration -> show command line afterwards
一直在找Pascal voc数据集下载地址,但官网好像上不去,记录一下镜像网址
Pascal Voc 2007 和Voc 2012下载地址:
https://pjreddie.com/projects/pascal-voc-dataset-mirror/
官网:
http://host.robots.ox.ac.uk/pascal/VOC/
解决方案:matplotlib的版本太低了,改为pip3 install MatPlotLib==3.1.1
解决方法:加 -O cp936
参数
如:unzip -O cp936 eat_pyspark_in_10_days.zip
后续,不定期更新中~~~
注:博客园该文章已断更,后续在此文章中继续更新。
dataframe赋值和新增列,对应的ID都不会变,如果是广播运算,ID就会变。
import pandas as pd
df = pd.DataFrame([[1, 11], [2, 22]], columns=['index', 'height'])
print(id(df))
df['index'] = df['index'] + 1
print(id(df))
df['other'] = 2
print(id(df))
df = df + 10
print(id(df))
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。