Spaces:
Sleeping
Sleeping
berkaygkv54
commited on
Commit
•
0fbe80a
1
Parent(s):
d435d57
drop columns and duplicates
Browse files
app.py
CHANGED
@@ -105,7 +105,8 @@ if is_clicked:
|
|
105 |
dataframe = output_songs(session.text_input)
|
106 |
if isinstance(dataframe, pd.DataFrame):
|
107 |
dataframe = dataframe.iloc[:session.slider_count]
|
108 |
-
dataframe.drop_duplicates(subset=["track_id"]
|
|
|
109 |
st.data_editor(
|
110 |
dataframe,
|
111 |
column_config={
|
|
|
105 |
dataframe = output_songs(session.text_input)
|
106 |
if isinstance(dataframe, pd.DataFrame):
|
107 |
dataframe = dataframe.iloc[:session.slider_count]
|
108 |
+
dataframe.drop_duplicates(subset=["track_id"], inplace=True)
|
109 |
+
dataframe.drop(columns=["track_id", "score"], inplace=True)
|
110 |
st.data_editor(
|
111 |
dataframe,
|
112 |
column_config={
|