Skip to content

Commit

Permalink
replace '/' (resulting from empty <continueAt> tags) with pd.NA inste…
Browse files Browse the repository at this point in the history
…ad of None
  • Loading branch information
johentsch committed Aug 9, 2023
1 parent 21eb728 commit e53d404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ms3/bs4_measures.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def make_ml(self, section_breaks=True, secure=True, reset_index=True):
fill_value=pd.NA)
self.ml.rename(columns={self.cols[c]: c for c in ['mc', 'breaks', 'jump_bwd', 'jump_fwd', 'markers', 'play_until']}, inplace=True)
if self.ml.jump_fwd.notna().any():
self.ml.jump_fwd = self.ml.jump_fwd.replace({'/': None})
self.ml.jump_fwd = self.ml.jump_fwd.replace({'/': pd.NA})
def get_cols(l):
return {col: self.cols[col] for col in l}
volta_cols = get_cols(['mc', 'volta_start', 'volta_length'])
Expand Down

0 comments on commit e53d404

Please sign in to comment.