Skip to content

Instantly share code, notes, and snippets.

@GurjotSinghMahi
Last active February 18, 2021 13:06
Show Gist options
  • Save GurjotSinghMahi/527f0be5f87b840960dbf80c5f114664 to your computer and use it in GitHub Desktop.
Save GurjotSinghMahi/527f0be5f87b840960dbf80c5f114664 to your computer and use it in GitHub Desktop.
# Select the dataframe greater than mentioned date
start_date = '2020-12-04'
df['Date'] = (df['Date']).astype('datetime64[D]')
#select only particular date data
df = df.loc[((df['Date'] >= start_date))]
# Prin the dataframe
print(tabulate(df[['SubmissionDate', 'user_id', 'gadget']], headers = 'keys', tablefmt = 'psql'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment