Giter VIP home page Giter VIP logo

Comments (10)

qinxuye avatar qinxuye commented on September 22, 2024

value_counts 限制条数是因为 ODPS 本身排序后必须要限制条数。

可以通过设置

from odps import options

options.df.odps.sort.limit = 100000000

设置这个值到一个比较大的数值来解决。目前这个值默认是 10000。

from aliyun-odps-python-sdk.

qinxuye avatar qinxuye commented on September 22, 2024

另外你的需求是 room 支持保存 options 配置?

from aliyun-odps-python-sdk.

aohan237 avatar aohan237 commented on September 22, 2024

原来是因为排序问题。 谢谢!

对啊,如果能保持配置,我配置一次,后面就不用配置了,而且每一个空间都可以有不同的配置,不是很方便么

from aliyun-odps-python-sdk.

qinxuye avatar qinxuye commented on September 22, 2024

这个建议可以考虑下,我们后续看看怎么做。

from aliyun-odps-python-sdk.

hengqujushi avatar hengqujushi commented on September 22, 2024

from odps import options

options.df.odps.sort.limit = 100000000

报错如下:
AttributeError: 'AttributeDict' object has no attribute 'odps'
pyodps更新到最新版本

from aliyun-odps-python-sdk.

hengqujushi avatar hengqujushi commented on September 22, 2024

10000这个非常坑啊,为什么没在文档里写明呢,对使用者会有很多问题的,非常非常坑。

from aliyun-odps-python-sdk.

qinxuye avatar qinxuye commented on September 22, 2024
from odps import __version__

看下版本

@hengqujushi

from aliyun-odps-python-sdk.

hengqujushi avatar hengqujushi commented on September 22, 2024

升级到最新版好了,但是强烈建议,在文档里注明10000这个限制。

from aliyun-odps-python-sdk.

qinxuye avatar qinxuye commented on September 22, 2024

http://pyodps.readthedocs.io/zh_CN/latest/df-sort-distinct-apply-zh.html#id2

更新了下文档,check 下 @hengqujushi

from aliyun-odps-python-sdk.

hengqujushi avatar hengqujushi commented on September 22, 2024

感谢及时的反馈和回复!

from aliyun-odps-python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.