在 Pandas 中,我想使用 CreatedDate >= 1/1/2015 提取机会数据。
目前,我在过滤 CreatedDate 之前提取所有 Opportunity 数据。是否可以通过将 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')]