Plotly editable table output to df and then to graph

Hey Folks,

I am trying to create an editable table in plotly, output of which impacts my dataframe.

Simplified e.g. below where Freight will be my interactive editable input table which will need to then be used to re-calculate my df with new column df frieght adjusted price. I want to then plot this column

import pandas as pd
import numpy as np
import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_table
import plotly.graph_objs as go
from dash.dependencies import Input, Output, State
import flask
from werkzeug.wsgi import DispatcherMiddleware
from werkzeug.serving import run_simple
import matplotlib.pyplot as plt

data = [[‘Jan=18’, 10], [‘Feb-18’, 15], [‘Mar-18’, 14]]

Create the pandas DataFrame

df = pd.DataFrame(data, columns = [‘Time’, ‘Price’])

factors=[1]

print dataframe.

df[‘Freight adjusted Price’]= df[‘Price’]-factors

Grateful for some direction here (my first week with Ploltly and Python)