Plotting out SORA

D
Nov 20, 2024
Generated using Meta.ai

For a free read of this article check this.

Let’s generate a graph using SORA 3M and SORA 1M data. First download the dataset, it should come in the form of a csv.

Then proceed to clean the data

import pandas as pd

df = pd.read_csv("sora.csv")
df = df[df["Compount SORA - 1 month"] != '-']
df = df[df["Compount SORA - 3month"] != '-']
df = df.drop(columns=["SORA Value Date", "year", "month"])
df.to_csv("sora (edited).csv", index=False)

Then plot out the data

import pandas as pd
import plotly.graph_objects as go

df['Compound SORA - 3 month'] = pd.to_numeric(df['Compound SORA - 3 month'], errors="coerce")

fig = go.Figure()

fig.add_trace(
go.Scatter(
x=df['SORA Publication Date'],
y=df['Compound SORA - 3 month'],
marker=dict(color="Blue", symbol="circle", size=2),
name="SORA - 3M"
)
)

fig.add_trace(
go.Scatter(
x=df['SORA Publication Date'],
y=df['Compound SORA - 1 month'],
marker=dict(color="Black", symbol="circle", size=1),
name="SORA - 1M"
)
)

This should then give you the result

Graph using plotly

--

--

D
D

Written by D

An aspiring Robotics Researcher. I am currently in my 4th year of undergraduate studies. I am working on optimising the ROS navigation packages. Follow 4 more!

No responses yet