我有以下数据框。除“ Received_on”和“ Process_days”外,所有列的数据类型均为“对象”。 Received_on是datetime64 [ns],Process_days是float64。 这里的主要目标是Process_days,我们处理得越快越好。
我想创建一个交互式图形,可以在其中过滤结果。 如果我选择产品,则图表应为该产品的处理天数。然后,我应该能够在此之上选择年和月,以便获得该月的值,或者我应该能够在其之上选择订单类型,以便根据订单类型获得值。同样,我应该能够选择Processed_by并为此获取数据。全部都是累积的,例如,我要在2010年10月对Katy和客户TR在产品WP上处理的订单进行处理。此查询应为我提供处理了哪种类型的订单以及每笔订单需要多少天的输出。
使用Matplotlib和python甚至可以进行这种可视化(如果需要,我可以安装其他软件包)?如果是,怎么办?您无需提供代码。如果您可以提供足够的教程或参考文献链接。
Product Customer Order_No Order_Type Received_on Process_days ProcessedBy
wp TR RTY-450441 Bulk Order 2016-08-11 00:00:00 4 Katy
wp TR RTY-451346 Cash Order 2016-08-16 00:00:00 2 Katy
wp TR RTY-452177 Bulk Order 2016-08-23 00:00:00 4 Sojo
wp TR RTY-452387 Cash Order 2016-08-24 00:00:00 4 Katy
ap EW RTY-454248 Cash Order 2016-09-16 00:00:00 0 Katy
wp TR RTY-457065 Cash Order 2016-10-13 00:00:00 2 Katy
wp TR RTY-457314 Cash Order 2016-10-19 00:00:00 0 Katy
ap EW RTY-458817 Credit Order 2016-11-07 00:00:00 5 Sojo
ap EW RTY-458324 Credit Order 2016-11-07 00:00:00 5 Sojo
ap EW RTY-459561 Credit Order 2016-11-07 00:00:00 5 Sojo
ap EW RTY-460797 Cash Order 2016-11-14 00:00:00 5 Katy
wp TR RTY-459654 Cash Order 2016-11-14 00:00:00 1 Katy
wp TR RTY-459657 Cash Order 2016-11-14 00:00:00 4 Katy
wp TR RTY-463505 Bulk Order 2016-12-09 00:00:00 2 Katy
wp TR RTY-463879 Cash Order 2016-12-15 00:00:00 0 Katy
ap EW RTY-463817 Cash Order 2016-12-09 00:00:00 1 Katy
ap EW RTY-464744 Cash Order 2016-12-21 00:00:00 0 Katy
pp SA RTY-463231 Credit Order 2016-12-02 00:00:00 5 Bob
wp TR RTY-466352 Credit Order 2017-01-24 00:00:00 2 Sal
wp TR RTY-467172 Cash Order 2017-01-27 00:00:00 0 Katy
wp TR RTY-466515 Bulk Order 2017-01-27 00:00:00 0 Katy
wp TR RTY-468116 Bulk Order 2017-01-31 00:00:00 1 Katy
wp TR RTY-469854 Cash Order 2017-02-13 00:00:00 1 Katy
ap EW RTY-469848 Cash Order 2017-02-14 00:00:00 1 Katy
wp TR RTY-470779 Cash Order 2017-02-22 00:00:00 1 Katy
wp SA RTY-470695 Credit Order 2017-02-23 00:00:00 0 Bob
wp TR RTY-471794 Cash Order 2017-03-02 00:00:00 1 Mat
ap EW RTY-471403 Bulk Order 2017-03-07 00:00:00 1 Mat
wp TR RTY-471793 Bulk Order 2017-03-10 00:00:00 1 Mat
wp TR RTY-474255 Credit Order 2017-03-28 00:00:00 1 Bob
ap TR RTY-475837 Bulk Order 2017-04-13 00:00:00 4 Katy
ap EW RTY-476957 Cash Order 2017-04-21 00:00:00 0 Katy
ap EW RTY-476959 Cash Order 2017-04-21 00:00:00 0 Katy
ap EW RTY-476960 Cash Order 2017-04-21 00:00:00 0 Katy
wp TR RTY-477107 Cash Order 2017-04-26 00:00:00 0 Mat
ap EW RTY-477631 Credit Order 2017-05-11 00:00:00 1 Mat
ap EW RTY-477633 Credit Order 2017-05-11 00:00:00 1 Mat
wp TR RTY-478420 Cash Order 2017-05-11 00:00:00 3 Mat
ap EW RTY-478596 Credit Order 2017-05-15 00:00:00 3 Mat
wp TR RTY-479099 Cash Order 2017-05-15 00:00:00 0 Mat
ap EW RTY-478916 Cash Order 2017-05-16 00:00:00 0 Mat
ap EW RTY-477635 Credit Order 2017-05-11 00:00:00 1 Katy
ap EW RTY-477632 Credit Order 2017-05-11 00:00:00 1 Katy
ap EW RTY-478597 Credit Order 2017-05-15 00:00:00 0 Katy
wp TR RTY-479791 Credit Order 2017-05-25 00:00:00 0 Mat
wp TR RTY-481359 Bulk Order 2017-06-14 00:00:00 0 Mat
wp TR RTY-480708 Bulk Order 2017-06-15 00:00:00 0 Mat
wp TR RTY-481982 Cash Order 2017-06-23 00:00:00 0 Mat
wp TR RTY-482727 Bulk Order 2017-06-26 00:00:00 4 Mat
ap EW RTY-482729 Credit Order 2017-06-29 00:00:00 3 Katy
ap EW RTY-483889 Credit Order 2017-07-11 00:00:00 0 Katy
ap EW RTY-486746 Cash Order 2017-08-08 00:00:00 0 Katy
ap EW RTY-486742 Cash Order 2017-08-08 00:00:00 0 Katy
wp TR RTY-486571 Bulk Order 2017-08-09 00:00:00 0 Mat
ap EW RTY-486572 Bulk Order 2017-08-11 00:00:00 5 Mat
ap EW RTY-487143 Bulk Order 2017-08-18 00:00:00 1 Mat
wp TR RTY-487418 Bulk Order 2017-08-20 00:00:00 2 Katy
ap EW RTY-487142 Bulk Order 2017-08-23 00:00:00 3 Mat
pp SA RTY-488154 Bulk Order 2017-08-26 00:00:00 4 Bob
pp SA RTY-488155 Bulk Order 2017-08-26 00:00:00 4 Bob
wp TR RTY-489414 Credit Order 2017-09-08 00:00:00 0 Mat