Comments (10)
value_counts
限制条数是因为 ODPS 本身排序后必须要限制条数。
可以通过设置
from odps import options
options.df.odps.sort.limit = 100000000
设置这个值到一个比较大的数值来解决。目前这个值默认是 10000。
from aliyun-odps-python-sdk.
另外你的需求是 room 支持保存 options 配置?
from aliyun-odps-python-sdk.
原来是因为排序问题。 谢谢!
对啊,如果能保持配置,我配置一次,后面就不用配置了,而且每一个空间都可以有不同的配置,不是很方便么
from aliyun-odps-python-sdk.
这个建议可以考虑下,我们后续看看怎么做。
from aliyun-odps-python-sdk.
from odps import options
options.df.odps.sort.limit = 100000000
报错如下:
AttributeError: 'AttributeDict' object has no attribute 'odps'
pyodps更新到最新版本
from aliyun-odps-python-sdk.
10000这个非常坑啊,为什么没在文档里写明呢,对使用者会有很多问题的,非常非常坑。
from aliyun-odps-python-sdk.
from odps import __version__
看下版本
from aliyun-odps-python-sdk.
升级到最新版好了,但是强烈建议,在文档里注明10000这个限制。
from aliyun-odps-python-sdk.
http://pyodps.readthedocs.io/zh_CN/latest/df-sort-distinct-apply-zh.html#id2
更新了下文档,check 下 @hengqujushi
from aliyun-odps-python-sdk.
感谢及时的反馈和回复!
from aliyun-odps-python-sdk.
Related Issues (20)
- OSError: [Errno 22] Invalid argument HOT 4
- udtf中无法读取zip资源 HOT 1
- 导入ODPS时发生错误OSError: [Errno 22] Invalid argument HOT 2
- 写数据时报错 AttributeError: 'memoryview' object has no attribute 'encode' HOT 1
- http.client.ResponseNotReady raised in 0.11.4 HOT 4
- bug in pyodps join
- 使用pyodps-pack打包第三方包的时候,加--exclude参数就会报错 HOT 2
- 本地使用pyodps包会报错:TypeError: Object of type bytes is not JSON serializable HOT 5
- Support sqlalchemy version 2 HOT 2
- 如何利用非docker模式打包依赖包 HOT 2
- 使用table.open_reader读到partition字段为None HOT 3
- 如何更新字段注释 HOT 1
- py3.11
- superset 3.x integration error HOT 2
- "decimal.InvalidOperation": 写入到本地mysql 数据表失败 HOT 1
- DataFrame.persist fail in Python3.9 HOT 2
- 什么时候能支持python3.12呀
- Could not pip install pyodps HOT 1
- AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead. HOT 3
- _odps_type_to_sqlalchemy_type 类型转换出错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliyun-odps-python-sdk.