tweak sampled_logs to output a df from within C++.