我在build.gradle
中添加了以下任务:
task buildLambda(type: Copy) {
from compileJava
from processResources
into('lib') {
from configurations.runtime
}
into target
}
build.dependsOn buildLambda
在Intellij IDEA中构建项目会产生以下Gradle错误:
Could not get unknown property 'target' for task ':my-
project:buildLambda' of type org.gradle.api.tasks.Copy.
但是使用Gordon框架成功完成了构建。有人可以帮忙吗?
答案 0 :(得分:0)
def get_bin(group):
p80 = group.value.quantile(0.8)
p90 = group.value.quantile(0.9)
group['bin'] = pd.cut(
x=group.value,
bins=[-np.inf, p80, p90, np.inf],
right=False,
labels=['<P80', 'P80_90', '>P90'])
return group
df.groupby(lambda x: x.year).apply(get_bin)
# value bin
# index
# 2015-02-03 23:00:00 33.24 <P80
# 2015-02-04 07:00:00 45.99 <P80
# 2015-02-04 07:30:00 50.23 >P90
# 2015-02-04 09:00:00 48.46 P80_90
# 2015-02-04 10:00:00 48.40 P80_90
不是Gradle可以解释的已知属性:您应该编写target
(或:into 'target'
)