<div>Hello Walter and members:</div>
<div> </div>
<div>I&#39;m working with csv to handle excel, my other was useful to do my new cvs file. When I open the output file, it has all the information I need, but all of my lines have the filepath separate by comes, even though it&#39;s supposed to be a complete string; for example: C,:,\,i,n,d,i,c,e,.,s,h,p all the others have the same format. </div>

<div>Besides I need a row to put in each cell the column names, with:</div>
<div> c.writerow([&quot;Archivo&quot;,&quot;x_min&quot;,&quot;x_max&quot;,&quot;y_min&quot;,&quot;y_max&quot;,&quot;geometria&quot;,&quot;num_ele&quot;,&quot;prj&quot;,&quot;estructura bd&quot;,&quot;extent&quot;,&quot;fecha_modificacion&quot;,&quot;maquina_host&quot;]). But all tha names gather in the same row and I want my pathfile to place under the &quot;Archivo&quot; column, but I couldn&#39;t do it.<br>
</div>
<div><br><br> </div>
<div class="gmail_quote">2010/10/11 Walter Prins <span dir="ltr">&lt;<a href="mailto:wprins@gmail.com">wprins@gmail.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><br><br>
<div class="gmail_quote">On 11 October 2010 14:37, Susana Iraiis Delgado Rodriguez <span dir="ltr">&lt;<a href="mailto:susana.delgado_s@utzmg.edu.mx" target="_blank">susana.delgado_s@utzmg.edu.mx</a>&gt;</span> wrote:<br>

<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>The other question is about the excel files management, if I want to manipulate this data to work it in Excel should I look for an excel library in python right?</div><br></blockquote></div><br></div>Yes. I already mentioned one (in my view good) option in my original reply to you.   The xlwt module works quite well for generating Excel files (with expectable limitations) from any platform that Python&#39;s available on (e.g. including non-Windows.)  and thus does not require Excel to be available on the machine you&#39;re producing the file on.<br>
<br>If however you are running on Windows and have Excel installed, you could consider driving the real Excel via COM automation, which will guarantee you get desired results including formatting, charts etc, and will ensure you have full access to all the functionality Excel exposes via its COM object model.<br>
<br>If your requirements on the other hand simple enough then Joel&#39;s suggestion to use CSV is probably preferable.  (The KISS principle: &quot;Keep It Small &amp; Simple&quot;)<br><br>There&#39;s also the possibility to look into generating .xlsx files (e.g. XML based Office format files.)  Theoretically you should be able to generate the correctly structured XML independent of Excel and have it open in Excel.  I suspect that may be rather painful though (have never tried this myself) andam almost reluctant to even mention this option, so caveat emptor.<br>
<font color="#888888"><br>Walter<br></font></blockquote></div><br>