Lightkurve nan values after bin light curve
Thanks to all for your help. Because of the planetmarker's comment I found out that it is also necessary to set the time_bin_size parameter. After upgrade to lightkurve 2.0.6, there is also parameter bins, which sets time_bin_size automatically.
bin = fold.bin(bins=101)  # bins instead of n_bins