Skip to content

Commit

Permalink
Issue #132
Browse files Browse the repository at this point in the history
Read only the crane_choice
  • Loading branch information
akey7 committed Apr 7, 2020
1 parent 32133f3 commit 4b81877
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions post_processing_scripts/extract_crane_choice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import pandas as pd

# The extended_landbosse_details dataframe includes all the details along side
# all the project list inputs
df = pd.read_csv("extended_landbosse_details.csv")

# Extract the crane choice data
crane_choice_df = df.query("`Variable name` == 'crane_choice: Crew name - Boom system - Operation'")

print(crane_choice_df.head())

# The "Project ID with serial" is the key on the outer dictionary and the
# the crane operations are the keys on the inner dictionary. The values on
# the inner dictionary are the crane choices for each operation.
# projects: Dict[str, Dict[str, str]] = {}

0 comments on commit 4b81877

Please sign in to comment.