Seaborn tsplot: "Index contains duplicate entries, cannot reshape" even though index has no duplicates
<p>I want to make a picture much like the following:</p>

<p><a href="https://i.stack.imgur.com/iT9uz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iT9uz.png" alt="enter image description here"></a></p>

<p>I want to use seaborn to make the graphs look spiffy, and make it easier for myself to use facetgrids afterwards (I have ten different datasets I want to show in the same graph.)</p>

<p>The closest thing I have found in seaborn are the <a href="http://stanford.edu/~mwaskom/software/seaborn/examples/timeseries_from_dataframe.html" rel="nofollow noreferrer">tsplots</a>.</p>

<p>I have data that looks like the following (five million rows):</p>

<pre><code>   Bin_nb Sample           Type  Count
0     131   Exp1          Input      1
1      79   Exp2  Polymerase_II      1
2     100   Exp1          Input      2
3     173   Exp2          Input      3
4      40   Exp1          Input      1
</code></pre>

<p>The <code>Bin_nb</code> ranges from 0 to 200 and I'm pretending they represent time.</p>

<p>There are no duplicates in the index:</p>

<pre><code>len(df.index.drop_duplicates()) # 5e6
</code></pre>

<p>Still I get the error <code>ValueError: Index contains duplicate entries, cannot reshape</code></p>

<p>When I try the command </p>

<pre><code>sns.tsplot(data=df, time="Bin_nb", unit="Sample", value="Count", condition="Type")
</code></pre>

<p>Version info:</p>

<pre><code>&gt;&gt;&gt; sns.__version__
'0.6.0'
&gt;&gt;&gt; pd.__version__
'0.17.1'
</code></pre>