import pandas as pd
from ipyvizzu import Chart, Data, Config
= pd.read_csv(
df "https://ipyvizzu.vizzuhq.com/latest/showcases/titanic/titanic.csv"
)= Data()
data
data.add_df(df)
= Chart(width="640px", height="360px")
chart
chart.animate(data)
chart.animate(
Config(
{"x": "Count",
"y": "Sex",
"label": "Count",
"title": "Passengers of the Titanic",
}
)
)
chart.animate(
Config(
{"x": ["Count", "Survived"],
"label": ["Count", "Survived"],
"color": "Survived",
}
)
)"x": "Count", "y": ["Sex", "Survived"]})) chart.animate(Config({
import jovian
jovian.commit()
[jovian] Updating notebook "sumendar/list-of-highest-grossing-indian-films-ba210" on https://jovian.com/
[jovian] Committed successfully! https://jovian.com/sumendar/list-of-highest-grossing-indian-films-ba210
'https://jovian.com/sumendar/list-of-highest-grossing-indian-films-ba210'
# !pip install beautifulsoup4
from bs4 import BeautifulSoup
import requests
import pandas as pd
= "https://en.wikipedia.org/wiki/List_of_highest-grossing_Indian_films"
wiki_url = "wikitable sortable jquery-tablesorter" table_id
= requests.get(wiki_url)
response = BeautifulSoup(response.text, 'html.parser') soup
# movies_table = soup.find('table', {'class:wikitable sortable jquery-tablesorter'}).
# print(movies_table)
= pd.read_html('https://en.wikipedia.org/wiki/List_of_highest-grossing_Indian_films')
dfs len(dfs)
21