!pip install lightkurve
%matplotlib inline
import lightkurve as lk
import matplotlib.pyplot as plt
TIC = 'TIC 424865156'
available_data_select = lk.search_lightcurve(TIC)[0:2]
lc_collection = available_data_select.download_all().stitch()
%matplotlib inline
fig, ax = plt.subplots(figsize = (8, 4))
lc_collection.plot(ax = ax, linewidth = 0, marker = 0, color = 'pink', markersize = 1, alpha = 0.8)
period = 2.20474
t0 = 1684
lc_phased = lc_collection.fold(period = period, epoch_time = t0)
%matplotlib inline
fig, ax = plt.subplots()
lc_phased.plot(ax = ax, linewidth = 0, marker = 0, color = 'pink', markersize = 1, alpha = 0.8)
# bin