Created
July 15, 2019 00:04
-
-
Save kperry2215/b010e5f9bf723b7ba26667123b0d9bb8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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