How to read strange csv files in Pandas?
<p>I would like to read sample csv file shown in below</p>

<pre><code>--------------
 |A|B|C| 
--------------
 |1|2|3| 
--------------
 |4|5|6| 
--------------
 |7|8|9| 
--------------
</code></pre>

<p>I tried </p>

<pre><code>pd.read_csv("sample.csv",sep="|")
</code></pre>

<p>But it didn't work well.</p>

<p>How can I read this csv?</p>

<p>i try this code and its ok !:</p>

<pre><code>import pandas as pd
import numpy as np
a = pd.read_csv("a.csv",sep="|")
print(a)
for i in a:
    print(i)
</code></pre>

<p><a href="http://i.stack.imgur.com/87JF9.jpg" rel="nofollow"><img src="http://i.stack.imgur.com/87JF9.jpg" alt="enter image description here"></a></p>

python csv pandas