Skip to content

Commit

Permalink
Fix path + str addition
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzvonkov committed Aug 11, 2023
1 parent e58e82a commit 96b985b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,17 @@ def load_labels(self) -> pd.DataFrame:
NamibiaNorthStratified_dir = raw_dir / "Namibia_North_stratified_2020"
df1 = pd.read_csv(
NamibiaNorthStratified_dir
/ "ceo-Namibia_North-Sep-2020---Sep-2021-Stratified-sample-(Set-1)"
+ "-sample-data-2023-06-22.csv"
/ (
"ceo-Namibia_North-Sep-2020---Sep-2021-Stratified-sample-(Set-1)"
+ "-sample-data-2023-06-22.csv"
)
)
df2 = pd.read_csv(
NamibiaNorthStratified_dir
/ "ceo-Namibia_North-Sep-2020---Sep-2021-Stratified-sample-(Set-2)"
+ "-sample-data-2023-06-22.csv"
/ (
"ceo-Namibia_North-Sep-2020---Sep-2021-Stratified-sample-(Set-2)"
+ "-sample-data-2023-06-22.csv"
)
)
df = pd.concat([df1, df2])
df[CLASS_PROB] = df["Does this pixel contain active cropland?"] == "Crop"
Expand Down

0 comments on commit 96b985b

Please sign in to comment.