熊猫汇总MongoDb

时间:2019-11-24 13:26:58

标签: python pandas mongodb

我正在尝试在熊猫中执行聚合功能。我想按变量“ MARCA”,“ MODEL”对它们进行分组,但仅记录“ AN_FABRICATIE”小于2010的记录。

 $api_params = array(
                    'edd_action'   => 'get_version',
                    'license'      => $this->license_manager->get_license_key(),
                    'item_name'    => $this->product->get_item_name(),
                    'wp_version'   => $wp_version,
                    'item_version' => $this->product->get_version(),
                    'url'          => $this->license_manager->get_url(),
                    'slug'         => $this->product->get_slug(),
                );

                // Add product ID from product if it is implemented.
                if ( method_exists( $this->product, 'get_product_id' ) ) {
                    $product_id = $this->product->get_product_id();
                    if ( $product_id > 0 ) {
                        $api_params['product_id'] = $this->product->get_product_id();
                    }
                }

                // setup request parameters
                $request_params = array(
                    'method' => 'POST',
                    'body'   => $api_params
                );

              // a req

这是代码,但是当我放入match时,它返回空数据框。

我做错了什么地方

谢谢

0 个答案:

没有答案