当前位置: 首页 > news >正文

国外科技感强的网站wordpress文章版权

国外科技感强的网站,wordpress文章版权,房地产信息网查询,自媒体平台账号我是Python中Pandas概念的新手.通常情节不是问题.但是,我现在面临的是包含索引的数据框.不知何故什么都没有了.我想要实现的目标#xff1a;为每个列[Plant1,Plant2,Plant3]创建一个特定柱[Trafo1]的子图.这是我的代码#xff1a;import numpy as npimport datetimeimport nu…我是Python中Pandas概念的新手.通常情节不是问题.但是,我现在面临的是包含索引的数据框.不知何故什么都没有了.我想要实现的目标为每个列[Plant1,Plant2,Plant3]创建一个特定柱[Trafo1]的子图.这是我的代码import numpy as npimport datetimeimport numpy as npimport matplotlibimport matplotlib.pyplot as pltimport pandas as pdimport os# Create the sample dataplant1 {Date : pd.date_range(1/1/2011, periods10, freqD),Plant : pd.Series([Plant1]*10),Output : pd.Series(abs(np.random.randn(10)))}plant2 {Date : pd.date_range(1/3/2011, periods10, freqD),Plant : pd.Series([Plant2]*10),Output : pd.Series(abs(np.random.randn(10)))}plant3 {Date : pd.date_range(1/5/2011, periods10, freqD),Plant : pd.Series([Plant3]*10),Output : pd.Series(abs(np.random.randn(10)))}trafo1 {Date : pd.date_range(1/5/2011, periods10, freqD),Plant : pd.Series([Trafo1]*10),Output : pd.Series(abs(np.random.randn(10)))}trafo2 {Date : pd.date_range(1/5/2011, periods10, freqD),Plant : pd.Series([Trafo2]*10),Output : pd.Series(abs(np.random.randn(10)))}df_plant_1 pd.DataFrame(plant1)df_plant_2 pd.DataFrame(plant2)df_plant_3 pd.DataFrame(plant3)df_trafo_1 pd.DataFrame(trafo1)df_trafo_2 pd.DataFrame(trafo2)sample pd.concat([df_plant_1,df_plant_2,df_plant_3,df_trafo_1,df_trafo_2])test pd.pivot_table(sample, indexDate, columnsPlant, valuesOutput)test test.fillna(methodpad)test test.fillna(methodbfill)# Draw the plotsmatplotlib.style.use(ggplot)cols len(test.columns) - 1fig, axes plt.subplots(nrowscols/2, ncols2, figsize(12, 4))for column in test.iloc[:,:-1]:test.plot(xtest[column], ytest[Trafo1], titlecolumn)plt.gca().set_aspect(equal, adjustablebox)plt.show()导致以下错误输出runfile(C:/..../untitled12.py, wdirC:/...)Traceback (most recent call last):File , line 1, in runfile(C:/Users/bjl/untitled12.py, wdirC:/Users/bjl)File C:\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py, line 699, in runfileexecfile(filename, namespace)File C:\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py, line 74, in execfileexec(compile(scripttext, filename, exec), glob, loc)File C:/Users/bjl/untitled12.py, line 52, in test.plot(xtest[column], ytest[Trafo1], titlecolumn)File C:\Anaconda2\lib\site-packages\pandas\tools\plotting.py, line 3671, in __call__sort_columnssort_columns, **kwds)File C:\Anaconda2\lib\site-packages\pandas\tools\plotting.py, line 2556, in plot_frame**kwds)File C:\Anaconda2\lib\site-packages\pandas\tools\plotting.py, line 2370, in _plotseries data[y].copy() # Dont modifyFile C:\Anaconda2\lib\site-packages\pandas\core\frame.py, line 1963, in __getitem__return self._getitem_array(key)File C:\Anaconda2\lib\site-packages\pandas\core\frame.py, line 2007, in _getitem_arrayindexer self.ix._convert_to_indexer(key, axis1)File C:\Anaconda2\lib\site-packages\pandas\core\indexing.py, line 1150, in _convert_to_indexerraise KeyError(%s not in index % objarr[mask])KeyError: [ 1.20311253 1.20311253 1.20311253 1.20311253 1.20311253 0.32765014\n 1.65686117 2.58118029 0.58903059 0.13907876 0.59270297 0.27072611\n 0.50167366 1.0310578 ] not in index我不明白索引的问题是什么.我无法在线找到任何帮助,因为所有示例都没有索引.我非常感谢你的帮助.这个错误对新手来说很神秘.
http://www.pierceye.com/news/308866/

相关文章:

  • 网站建设 人员 年终总结表白网站制作器
  • 怎么发布个人网站上海网站制作推广
  • 外国人做汉字网站网站访问量过大
  • 南昌做公司网站哪家好手机端网站自动弹出营销qq
  • 网站开发参考文献2015年后出售网站平台
  • 做外国网站买域名上海网站建设的英文
  • 好看的静态网站信产部网站备案
  • 怎样建设网站 需要哪些条件wordpress安装主题要多久
  • 高端网站设计平台高端网站设计企业印象笔记wordpress同步
  • 汽车网站建设的目的公司简介模板设计图片
  • 做外贸的社交网站怎么攻击网站吗
  • 网站布局手机百度网址大全
  • 企业网站做多大擦边球做网站挣钱
  • 网站怎么备份做网站建设要学多久
  • 怎样做买东西的网站外汇期货喊单网站怎么做的
  • 博客网站推荐郑州哪里做网站
  • 贵州建设职业技术学院网站网站开发 多语言
  • 网站后台管理系统怎么进重庆建设工程安全管理局网站
  • 移动网站开发的视频下载百度网盘下载官网
  • 在百度备案网站建设工程检测网
  • 广州企业网站营销电话公司网站怎么做啊
  • 如何利用视频网站做推广网站开发管理学什么
  • 福建漳发建设有限公司网站做网站申请什么商标
  • 专门做房产的网站上海网站开发毕业生
  • 网站域名已经解析但没有被百度等搜索引擎收录怎么办可以做投票功能的网站
  • 重庆网站设计总部什么是社交电商平台
  • 内容管理网站百度电商平台
  • 网站建设 万网网站统计插件
  • 怎么个人网站设计网站建设 不违背
  • 图片下载网站郑州联通网站备案