1
在Pandas中,我想通過CreatedDate> = 1/1/2015獲取商機數據。Beatbox:可能在添加SFDC數據時添加查詢條件?
目前,我正在提取所有商機數據,然後才能過濾出CreatedDate。是否可以通過將CreatedDate條件添加到查詢來優化此過程?
現狀:
query_result = service.query("SELECT ID, CreatedDate FROM Opportunity")
records = query_result['records']
oppty = pd.DataFrame(records)
oppty = oppty[(oppty['CreatedDate'] >= '2015-01-01')]