Skip to content

Analyzing unicorn company data
Analyzing unicorn company data
In this workspace, we'll be exploring the relationship between total funding a company receives and its valuation.
DataFrameas
df
variable
SELECT *
FROM funding as f INNER JOIN companies as c ON f.company_id=c.company_idimport matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
df.head()
df.select_investors.describe()# Summarize funding by select_investor for top 10 investors
top_investors = df.groupby('select_investors')['funding'].sum().reset_index().nlargest(10, 'funding')
# Create bar chart
plt.figure(figsize=(10, 6))
sns.barplot(x='select_investors', y='funding', data=top_investors)
plt.title('Total Funding by Top 10 Select Investors')
plt.xlabel('Select Investor')
plt.ylabel('Total Funding')
plt.xticks(rotation=90)
plt.show()