Skip to content

Instantly share code, notes, and snippets.

@kperry2215
Created July 15, 2019 00:04
Show Gist options
  • Save kperry2215/b010e5f9bf723b7ba26667123b0d9bb8 to your computer and use it in GitHub Desktop.
Save kperry2215/b010e5f9bf723b7ba26667123b0d9bb8 to your computer and use it in GitHub Desktop.
#Pull all of the fracfocus data from a csv
fracfocus_registry=pd.read_csv('fracfocus_data_example.csv', low_memory=False)
#Make all of the state column lowercase
fracfocus_filter=fracfocus_data_search(state='Texas', state_abbreviation='TX',
county_list=['Andrews', 'Borden', 'Crane', 'Dawson',
'Ector', 'Eddy', 'Gaines', 'Glasscock'], operator='XTO')
#Filter dataframe by its parameters
subsetted_df=fracfocus_filter.filter_dataframe(fracfocus_registry, column_state='StateName',
column_county='CountyName', column_operator='OperatorName')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment