Skip to content

Commit

Permalink
Fix typo in column name
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Jan 31, 2024
1 parent f2daef5 commit f29e16d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fink_broker/science.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ def apply_science_modules(df: DataFrame, noscience: bool = False) -> DataFrame:
df = df.withColumnRenamed('SPICY', 'spicy_id')
# Cast null into -1
df = df.withColumn(
'SPICY',
'spicy_id',
F.when(
df['SPICY'].isNull(),
df['spicy_id'].isNull(),
F.lit(-1)
).otherwise(df['SPICY'])
).otherwise(df['spicy_id'])
)

# rename `class` into `spicy_class`. Values are:
Expand Down

0 comments on commit f29e16d

Please sign in to comment.