首页 \ 问答 \ 按特定月份切片(Slicing by specific month)

按特定月份切片(Slicing by specific month)

我有一个以下格式的数据帧。

              1            2           3           4  
Data                                                                            
2001-07-30      0.363354   27.428261   14.639130   6.763423         
...                  ...         ...         ...        ...           
2015-06-15      0.039085   28.562948   14.000722   8.605911         

我希望逐月切片。 因此,例如,我想仅选择第5个月的数据并将其存储在新变量中。 我找到了类似问题的几个答案。 然而,这些并未提供预期的结果。

这方面的问题和答案的例子:

  1. Pandas DataFrame按天/小时/分钟切片
  2. python pandas数据帧按日期条件切片
  3. pandas,python - 如何选择时间序列中的特定时间

我不熟悉Python和Pandas的时间序列分析,因此任何推动正确方向或阅读材料都将受到赞赏。


I have a dataframe in the following format.

              1            2           3           4  
Data                                                                            
2001-07-30      0.363354   27.428261   14.639130   6.763423         
...                  ...         ...         ...        ...           
2015-06-15      0.039085   28.562948   14.000722   8.605911         

I wish to slice by month. Thus for example I want to select only data from month 5 and store this in a new variable. I have found several answers to similar questions. These however do not provide the intended result.

Examples of questions and answers in this area:

  1. Pandas DataFrame slicing by day/hour/minute
  2. python pandas dataframe slicing by date conditions
  3. pandas, python - how to select specific times in timeseries

I am new to timeseries analysis with Python and Pandas so any push to the right direction or reading material will be appreciated.


原文:https://stackoverflow.com/questions/35202167
更新时间:2021-09-30 09:09

最满意答案

除了我上面的评论,我还会将此作为答案添加,因为我收到了产品团队的确认,这就是答案。

我假设你正在使用Scrum模板? 错误被视为产品积压项目,该模板配置为显示右侧的项目。 任务仅显示在Scrum模板的任务板上。

使用TFS预览时,您无法更改现有团队项目的流程模板。 如果您想使用MSF Agile模板,您将需要创建一个新的团队项目。


Instead of my comment above, I'll add this as an answer since I received confirmation from the product team that this is the answer.

I am assuming you are using the Scrum template? Bugs are considered product backlog items and that template is configured to show those on the right side. Tasks are only shown on the Task Board for the Scrum Template.

At the moment with TFS Preview, you are unable to change the process template of an existing team project. If you would like to use the MSF Agile template, you will want to create a new team project.

相关问答

更多
  • 除了我上面的评论,我还会将此作为答案添加,因为我收到了产品团队的确认,这就是答案。 我假设你正在使用Scrum模板? 错误被视为产品积压项目,该模板配置为显示右侧的项目。 任务仅显示在Scrum模板的任务板上。 使用TFS预览时,您无法更改现有团队项目的流程模板。 如果您想使用MSF Agile模板,您将需要创建一个新的团队项目。 Instead of my comment above, I'll add this as an answer since I received confirmation fro ...
  • Agile模板使用用户故事。 Scrum模板使用Product Backlog Items。 它们服务于同一目的; 它主要是一个术语。 您无法在不同的流程模板之间切换。 The Agile template uses User Stories. The Scrum template uses Product Backlog Items. They serve the same purpose; it's mostly a terminology thing. You can't really switch ...
  • 是的你可以。 “已分配给”字段中有一个“曾经有”的运算符。 这将允许您查询曾分配给您的任何工作项。 “Changed By”字段中存在相同的运算符。 Yes you can. There is an "Was Ever" operator for the "Assigned To" field. This will allow you to query any work item that was ever assigned to you. The same operator exists on the " ...
  • 几周前,Visual Studio ALM Rangers发布了一个名为Team Foundation Server Word Add-in的工具 从Team Foundation Server团队项目导入工作项,并从TFS工作项生成具有专业外观的Word文档。 这个特定工具还处于早期阶段,但请查看下载部分的自述文件。 Team For Word是第三方制作的另一个非常相似的工具,我相信它最初是为TFS2008制作的,但是已经更新到2010年工作,如果安装2010年的团队资源管理器,它可能适用于2012 T ...
  • 您需要为您正在使用的团队选择一个唯一的区域或迭代。 所以你可以这样设置: A队 积压迭代: MyTeamProject\TeamA 冲刺: MyTeamProject\TeamA\Sprint 1 MyTeamProject\TeamA\Sprint 2 等等 区域: MyTeamProject 这样,团队A就可以使用它自己的一组迭代,但团队项目任何区域中的任何项目都会出现在它的积压中 - 这就是我的团队的工作方式。 或者: A队 积压迭代: MyTeamProject 冲刺: MyTeamProject\ ...
  • 您可以使用类似于以下内容的直接链接查询创建工作项: 请注意,我使用了对任务的反向检查。 查找具有已完成或已删除任务的故事不会排除仍有待执行或正在执行的任务的故事。 但是,寻找没有任务或正在进行的任务的故事,留下没有任务或只有被删除或完成状态的任务的故事。 请注意,在嵌套任务时,这不会找到包含打开任务的故事。 获得这些的唯一方法是对仓库使用SQL查询。 您可能还想查看eBacklog概述报告,该报告显示您的故事以及所有任务的剩余工作。 如果您的团队正在进行估算并且正在更新这些字段,那么报告将准确显示哪些故事准 ...
  • 不幸的是,(Product)Backlog视图中的过滤器框仅适用于关键字,您不能排除项目。 还有一个标签过滤器。 如果单击过滤器按钮,则可以单击要包括的标记。 这需要您为要显示的所有项目添加“backlog”标记(当然不包括任务)但是,即使它有效,它也不是一个很好的解决方案,因为您必须手动将标记添加到工作中您要显示的项目。 如果您没有与Backlog视图绑定,则可以切换到(看板)Board视图。 那里有一个更先进的过滤器。 单击顶部的“Board”,然后单击右上角的过滤器按钮,然后可以根据工作项类型和其他值 ...
  • 托管池目前仅适用于VSTS。 此时唯一的选择是使用VSOAgent设置VM并使用TFS On-Prem进行配置。 这将要求您的TFS暴露于Internet(或仅暴露给VM),以便Azure上的代理可以自行配置。 来源 - 我是托管泳池服务的开发者。 Hosted Pool currently works only with VSTS. The only option for you at this point of time is to setup a VM with VSOAgent and config ...
  • 您没有做错任何事情我在TFS 2017和TFS 2015都进行了测试以确认您的问题。 它确实表现得那样。 在以下情况下会发生此问题: 看下面的图片,我有2个有子任务的PBI。 折叠'mmm'时,'Sprint2'预测线不会消失。 折叠'jjj'时,'Sprint3'预测线将消失。 它与'jjj'下的'Task2'一起隐藏起来。 折叠后: 作为解决此问题的解决方法,您可以将“jjj”等工作项拖到其他位置。 改变它的顺序。 不要让有子任务的工作项显示在Sprint预测线之上 。 You doesn't do a ...
  • 在集成环境中,您描述TFS将像VCS一样运行,所以不,您将无法针对TFS中的故事提出YT中的错误。 但是,您可以通过简单地在#ISS-123 fixed之类的提交注释中提及它来修改YT问题的状态。 您将能够在YT中查看与问题相关的提交。 在TC中,您将看到哪些问题与构建有关。 In the integration environment you describe TFS would act just like a VCS, so no, you won't be able to raise bugs in ...

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)