text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

data = pd.read_csv('/kaggle/input/world-wide-unicorn-startups/World_Wide_Unicorn_Startups.csv')

data.shape

data.columns

data.isnull().sum()

data.duplicated().sum()

data.dropna(inplace=True)
data.isnull().sum()

data.shape

import seaborn as sns
import matplotlib.pyplot as plt

data.Industry.unique()

dfvalued = data.groupby('Country', as_index=False).Valuation.count()
dfvalued.sort_values(by='Valuation', ascending=False).head(10)

dfcom = data.groupby('Company', as_index=False).Valuation.max()
dfcom.sort_values(by='Valuation', ascending=False).head(1)

dfcity = data.groupby('City', as_index=False).Valuation.count()
dfcity.sort_values(by='Valuation', ascending=False).head(1)

dfcity = data.groupby('City', as_index=False).Valuation.count()
print('Total number of valuation startups in all cities')
dfcity.sort_values(by='Valuation', ascending=True)