<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Line Chart
Interactive line charts with plotly and cufflinks  
dataset
Step1:  Plotting through the plotly interface
Step2:  Alternatively, use cufflinks to access iplot through pandas
<ASSISTANT_TASK:>
Python Code:
import plotly.plotly as py
import cufflinks as cf
import pandas as pd
import numpy as np
import plotly.graph_objs as go
%matplotlib inline
df = cf.datagen.lines()
df.head()
Explanation: Line Chart
Interactive line charts with plotly and cufflinks  
dataset: cufflinks.datagen.lines()
End of explanation
py.iplot([{
    'x': df.index,
    'y': df[col],
    'name': col
}  for col in df.columns], filename='simple-line')
Explanation: Plotting through the plotly interface
End of explanation
p = df.iplot(kind='scatter', filename='simple-line', asFigure=True)
print(p.to_string())
dir(p)
py.iplot(p)
for l in p.data:
    pass
#     l.line.color = (l.line.color[0] - 0.2, l.line.color[1]-0.2, l.line.color[2]-2)
#     l['line']['style'] = 'longdash'
#     l['line']['color'] = (0.5,0.5,0.5)
    l['line']['color'] = 'red'
    l['line']['dash'] = 'longdash'
#     print(l['line']['color'])
p.data[0].mode = 'lines+markers'
py.iplot(p)
p = py.iplot([{
    'x': df.index,
    'y': df[col],
    'name': col
}  for col in df.columns], filename='simple-line')
type(p)
dir(p.data)
p.data
trace = go.Scatter(
    x = df.index,
    y = df.iloc[:,1],
    mode = 'markers'
)
data = [trace]
# Plot and embed in ipython notebook!
py.iplot(data, filename='basic-scatter')
Explanation: Alternatively, use cufflinks to access iplot through pandas
End of explanation
<END_TASK>