Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VCS compliance projects #13

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions offsets_db_data/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,53 @@
)


def add_vcs_compliance_projects(*, projects_data: pd.DataFrame) -> pd.DataFrame:
"""
Add details about two compliance projects to projects database.

Parameters
----------
projects_data : pd.DataFrame
A pandas DataFrame containing project data with a 'project_id' column.

Returns
--------
projects_data: pd.DataFrame
A pandas DataFrame with two additional rows, describing two projects from the mostly unused Verra compliance
registry portal.
"""

vcs_project_dicts = [
{
'project_id': 'VCSOPR2',
'name': 'Corinth Abandoned Mine Methane Recovery Project',
'protocol': 'arb-mine-methane',
'category': ['mine-methane'],
'proponent': 'Keyrock Energy LLC',
'country': 'United States',
'status': 'registered',
'is_compliance': True,
'registry': 'verra',
'project_url': 'https://registry.verra.org/app/projectDetail/VCS/2265',
},
{
'project_id': 'VCSOPR10',
'name': 'Blue Source-Alford Improved Forest Management Project',
'protocol': 'arb-forest',
'category': ['forest'],
'proponent': 'Ozark Regional Land Trust',
'country': 'United States',
'status': 'registered',
'is_compliance': True,
'registry': 'verra',
'project_url': 'https://registry.verra.org/app/projectDetail/VCS/2271',
},
]
verra_projects = pd.DataFrame(vcs_project_dicts)
project_data = pd.concat([projects_data, verra_projects], ignore_index=True)
return project_data


def add_first_issuance_and_retirement_dates(
*, credits_data: pd.DataFrame, projects_data: pd.DataFrame
) -> pd.DataFrame:
Expand Down