-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read only the crane_choice
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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]] = {} |