You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
group_by and mutate cannot be combined this way in a disk.frame. To do ANY summary you must use summarize. I think mutate will compute the max within each chunk so it's not correct.
doesnt hard_group_by(Ticker,date,outdir="df_test") ensure that chunks are exactly what is needed to compute
the group-wise max?
if chunks exactly match the Ticker,date grouping, then max(minute) is both the max of the group and max of chunk?
what does hard_group_by do? does it not create a chunking from the grouping?
It doesn't but disk.frame doesn't know how to handle mutate after group_by. I think in the next minor version I will throw an error is group_by is not followed by summarization and in the next major version I will handle mutate.
The issue is that mutate is basically group_by and then join back to the original in one step which can be handled in disk.frame
Activity
nassuphis commentedon Apr 3, 2021
nassuphis commentedon Apr 3, 2021
it seems the res2 max calculation does not respect the grouping specified by group_by
nassuphis commentedon Apr 3, 2021
max_of_max is always larger than max_minute, and equal to the max across all dates
despite the group_by(Ticker,date)
this only happens if the disk.frame is on a file, if the same calculation is off a pipeline the result is ok.
xiaodaigh commentedon Apr 4, 2021
group_byandmutatecannot be combined this way in adisk.frame. To do ANY summary you must usesummarize. I thinkmutatewill compute the max within each chunk so it's not correct.nassuphis commentedon Apr 5, 2021
doesnt
hard_group_by(Ticker,date,outdir="df_test")ensure that chunks are exactly what is needed to computethe group-wise max?
if chunks exactly match the Ticker,date grouping, then max(minute) is both the max of the group and max of chunk?
what does
hard_group_bydo? does it not create a chunking from the grouping?xiaodaigh commentedon Apr 6, 2021
It doesn't but
disk.framedoesn't know how to handlemutateaftergroup_by. I think in the next minor version I will throw an error isgroup_byis not followed bysummarizationand in the next major version I will handlemutate.The issue is that
mutateis basicallygroup_byand thenjoinback to the original in one step which can be handled indisk.frame[-]disk.frame saved to disk does not match disk.frame that was saved[/-][+]Implement `mutate` follwoing `group_by`[/+]