Is there a way to apply a where condition on the dataframe before defining it?An example:
fills_df = pd.Dataframe(api.get_fills()).where(fills_df.orderId==orderId).dropna(subset=['orderId])
How I currently write it:
fills_df=pd.DataFrame(api.get_fills())
fills_df = fills_df.where(fills_df.orderId==orderId).dropna(subset=['orderId'])
Thank you in advance!