Professional Documents
Culture Documents
import dash
import plotly.express as px
import pandas as pd
##Analysis and filtering the data##
df=pd.read_csv(r'C:\123456.csv')
df['Launch date']=pd.to_datetime(df['Datum'])
df['Launch date']=df['Launch date'].astype(str)
df['Launch date']=df['Launch date'].str.split(' ',expand=True)[0]
df['Launch date']=pd.to_datetime(df['Launch date'])
df[' Rocket']=df[' Rocket'].str.replace(',','')
df[' Rocket']=df[' Rocket'].astype(float)
df['Status Rocket']=df['Status Rocket'].str.replace('Status','')
df.drop('Datum',axis=1,inplace=True)
data=df.dropna()
df=data.head(20)
##Separating the unique values##
print(df.Country.nunique())
print(df.Country.unique())
##Visualization##
##2) Barchart##
df=df.groupby('Status Rocket').count().reset_index()
df=df.rename(columns={"Detail": "Details"})
fig_bar=px.bar(data_frame=df, x='Status Rocket', y='Details', template='plotly_dark', title='Status of rockets Carrying
Missions')
fig_bar.show()
Output
Pie Chart
Data Set
Bar Chart 3d- Line Plot
Bar Chart
Scatter / Range Plot Sun Burst
Tree Map
Conclusion
• The space is a wide area of exploration which is never ending. So, to study space it is very
important that there is proper equipment and instruments to go ahead with the research and
development work.
• From the foregoing, we can see how crucial data visualization is to all industries, as well as its
advantages and many methods for creating visual formats. Without this crucial step, analytics
cannot process any future steps. I therefore draw the conclusion that data visualization can be used
in any industry or profession. Data visualization is also necessary because the vast majority of
massive, unstructured data cannot be comprehended by human minds alone. These data sets must
be transformed into a format that we can easily comprehend. To discover trends and linkages,
graphs and maps are essential if we are to gain understanding and reach a more accurate
conclusion.
• Graphs and charts help us convey data results so that we can spot patterns and trends, gain
understanding, and swiftly arrive at smarter conclusions. The significance of data visualization and
what it means to our clients must be understood by us. To help customers visualize their data in an
understandable and relevant way, we should offer them appealing and user-friendly visualization
capabilities and tools.
References
• Kaggle (
https://www.kaggle.com/code/arindambaruah/who-is-leading-the-sp
ace-race/notebook
)
• W3School (https://www.w3schools.com/python)
• Stack Overflow (https://stackoverflow.com/)
• Tutorials point (https://www.tutorialspoint.com/python/index.htm)
• Plotly (https://plotly.com/python/)
• Pandas (https://pandas.pydata.org/)