Loading Unicorn_Companies.csv
matplotlib - used for data visualization
Pandas - used to manipulate, structure, and handle the data
note
Datetime operations were performed using pandas' built-in datetime tools (pd.to_datetime, .dt) without relying on Python's standalone datetime module.
Loading the dataset and performing an initial inspection to understand structure, size, and data types using pandas.
View Code
# Importing
import pandas as pd
import matplotlib.pyplot as plt
# Loading
companies = pd.read_csv("Unicorn_Companies.csv")
# Inspection
companies.head(5) # A brief overview (5 rows)
companies.shape # Rows/columns count
companies.size # Dataset largeness
companies.info() # Dtypes, NULL factors, dataset integrity
companies.describe() # Descriptive statistics
companies.head(5)
| Company | Valuation | Date Joined | Industry | City | Country/Region | Continent | Year Founded | Funding | Select Investors | |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | Bytedance | $180B | 4/7/17 | Artificial intelligence | Beijing | China | Asia | 2012 | $8B | Sequoia Capital China... |
| 1 | SpaceX | $100B | 12/1/12 | Other | Hawthorne | United States | North America | 2002 | $7B | Founders Fund... |
| 2 | SHEIN | $100B | 7/3/18 | E-commerce | Shenzhen | China | Asia | 2008 | $2B | Tiger Global... |
| 3 | Stripe | $95B | 1/23/14 | Fintech | San Francisco | United States | North America | 2010 | $2B | Khosla Ventures... |
| 4 | Klarna | $46B | 12/12/11 | Fintech | Stockholm | Sweden | Europe | 2005 | $4B | Institutional Venture... |
companies.shape
(1074, 10)
companies.size
10740
companies.info()
<class 'pandas.core.frame.DataFrame'> RangeIndex: 1074 entries, 0 to 1073 Data columns (total 10 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 Company 1074 non-null object 1 Valuation 1074 non-null object 2 Date Joined 1074 non-null object 3 Industry 1074 non-null object 4 City 1058 non-null object 5 Country/Region 1074 non-null object 6 Continent 1074 non-null object 7 Year Founded 1074 non-null int64 8 Funding 1074 non-null object 9 Select Investors 1073 non-null object dtypes: int64(1), object(9) memory usage: 84.0+ KB
companies.describe()
| Year Founded | |
|---|---|
| count | 1074.000000 |
| mean | 2012.895717 |
| std | 5.698573 |
| min | 1919.000000 |
| 25% | 2011.000000 |
| 50% | 2014.000000 |
| 75% | 2016.000000 |
| max | 2021.000000 |

