title: How to export MDF to Excel or CSV using Python asammdf
body: <p>I have one sample sql server DB <code>mdf</code> file .I need to convert the file to excel or csv.i searched but not get correct solution.Finally I found one package from python <a href="https://pypi.org/project/asammdf/" rel="nofollow noreferrer"><code>asammdf</code></a></p>
  
  <p>I don't know how to do this .i am  really new with python and sql server.</p>
  
  <p>My try</p>
  
  <pre><code>  from asammdf import MDF, Signal
      import numpy as np
  
      with MDF(r'sample.mdf') as mdf_file:
          # do something
      export('csv', mdf_file, oned_as)
  </code></pre>
  
  <p>And i got Error</p>
  
  <pre><code>File "test.py", line 6
      export('csv', mdf_file, oned_as)
           ^
  IndentationError: expected an indented block
  </code></pre>
  
  <p>If any one give me correction.Or else please guide me how to convert mdf to excel or csv some other with windows related.basically i m in  Linux platform</p>