TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Dplython: Dplyr for Python

61 点作者 kiechu大约 9 年前

6 条评论

carljv大约 9 年前
This is an interesting project, and it&#x27;s illuminating to see what it takes to emulate some R features in Python (custom infix ops, non-standard evaluation, dataframes as namespaces&#x2F;envrionments, etc.)<p>But I feel like it would be better to use method chaining for the piping of transformation rather than overloading dunder method operators. It would preserve one of the nice things about dplyr -- composing complicated transformations from a simple vocabulary, but more pythonic. This is a relative weakness I see in the design of pandas and would love to see ported over.<p>But also, dplyr is a thing that really goes beyond pandas. It&#x27;s really an elegant, SQL-like DSL for transforming (mostly) arbitrary data. In this way it&#x27;s more like LINQ than a specific implementation&#x2F;API of a data structure.
CurtHagenlocher大约 9 年前
It looks like both Dplython and pandas-ply are missing one of (what I think is) the core value propositions of dplyr: the ability to use the same abstractions on local data and on remote data, with execution against the remote source happening lazily such that the entire table doesn&#x27;t need to be downloaded in order to run a filter locally.<p>(Of course, I may be biased in that I work on a commercial product which also has this characteristic.)
评论 #11336283 未加载
评论 #11337194 未加载
评论 #11336356 未加载
baldfat大约 9 年前
Piping in R is actually from <a href="https:&#x2F;&#x2F;github.com&#x2F;smbache&#x2F;magrittr" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;smbache&#x2F;magrittr</a> and not Dplyr and is actually inspired from F#.<p>&quot;R package to bring forward-piping features ala F#&#x27;s |&gt; operator.&quot;
评论 #11336325 未加载
dandermotj大约 9 年前
Looks like Hadleyverse is spreading! Honestly, I think his contributions have led the way for R to being the leading language in data science.
stared大约 9 年前
I was not aware it is possible with Python; but now I see: <a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;33658355&#x2F;piping-output-from-one-function-to-another-using-python-infix-syntax" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;33658355&#x2F;piping-output-fr...</a>
lamecicle大约 9 年前
I&#x27;m hugely excited by this.