I need to retrieve only rows where record_status is 'New' into a Dask Dataframe.
currently I am using below and creating pandas Dataframe as below
cnx = create_engine('mysql+mysqlconnector://root:password@localhost/sshema',
echo=False)
df_party = pd.read_sql('select first_name, last_name from party where record_status = \'New\'', con=cnx)
I want to do the same and create Dask Dataframe. Below is what I tried and is working. How can I add where condition to this to only retrieve rows with record_status 'New'
ddf_party = dd.read_sql_table('party','mysql+mysqlconnector://root:password@localhost/schema',
index_col='create_date', columns = ['first_name', 'last_name'])
Thanks in advance.