roszcz commited on
Commit
d201f92
·
1 Parent(s): 864cec6

silence pandas warning

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -45,8 +45,8 @@ pitch_threshold = st.number_input(
45
  )
46
  ids = df.pitch > pitch_threshold
47
 
48
- part_a = df[ids]
49
- part_b = df[~ids]
50
  piece_a = MidiPiece(df=part_a)
51
  piece_b = MidiPiece(df=part_b)
52
 
@@ -85,8 +85,8 @@ duration_threshold = st.number_input(
85
 
86
  ids = df.duration > duration_threshold
87
 
88
- part_a = df[ids]
89
- part_b = df[~ids]
90
  piece_a = MidiPiece(df=part_a)
91
  piece_b = MidiPiece(df=part_b)
92
 
 
45
  )
46
  ids = df.pitch > pitch_threshold
47
 
48
+ part_a = df[ids].copy()
49
+ part_b = df[~ids].copy()
50
  piece_a = MidiPiece(df=part_a)
51
  piece_b = MidiPiece(df=part_b)
52
 
 
85
 
86
  ids = df.duration > duration_threshold
87
 
88
+ part_a = df[ids].copy()
89
+ part_b = df[~ids].copy()
90
  piece_a = MidiPiece(df=part_a)
91
  piece_b = MidiPiece(df=part_b)
92