Skip to content

Commit

Permalink
Merge main into sweep/add-sweep-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Feb 25, 2024
2 parents 0a4f5a1 + d5975a7 commit c9065b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/Data Science In Your Pocket▶️ .py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
path = os.getcwd()+'/pdfs/youtube.csv'
df = pd.read_csv(path)
df = df.sample(frac = 1).reset_index()
x=len(df)
x=len(df)-1


html = '''<iframe id="ytplayer" type="text/html" width="75%" height="300"
src="https://www.youtube.com/embed/?listType=playlist&list={}"
frameborder="0" allowfullscreen>'''

while x>0:
while x>=0:
url = "https://www.youtube.com/playlist?list="+df.at[x,'playlist']
st.subheader("[{}]({})".format(df.at[x,'name'],url))
st.components.v1.html(html.format(df.at[x,'playlist']), width=800, height=300, scrolling=False)
Expand Down

0 comments on commit c9065b4

Please sign in to comment.