cmt['time'] = pd.to_datetime(cmt['post_time']) cmt_4 = cmt[(cmt['time'] >= '2022-02-01')] #convert df back to string cmt_4["time"] = cmt_4["time"].dt.strftime('%Y:%M:%D')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter