Closed
Description
In pandas 0.15.2, when passing both arguments 'color' and 'style' to the plot method, there is an error which I think should be raised only when there is a color symbol in the style string. But in the example below, the error is raised even though there is no color symbol in the line string:
from pandas import DataFrame
import numpy as np
df = DataFrame({'a': np.random.rand(10), 'b': np.random.rand(10), 'c': np.random.rand(10)})
df.plot(color = ['red', 'black', 'blue'], style = ['-', '--', '-'])
The error is not clear (TypeError: expected string or buffer). This should be fixed, although it is easy to work around:
df.plot(style = ['r-', 'k--', 'b-'])