473,602 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

csv writerow creates double spaced excel csv files

For some reason, when I write data to a csv file using the csv module of
python 2.3 and then open it in excel, every row is double spaced. I want
the csv file to have every row filled with data not every other row. Is
there a way I can fix this. I am using csv.writerow(da ta) and
csv.writerows(d ata) functions, both write rows every other row when I open
it in excel.
Example:
1 asdflkjfa
2
3 fjsdkfjoijef
4
5 asdlfkjsdf

Thanks in advance.
Michael

_______________ _______________ _______________ _______________ _____
Find great local high-speed Internet access value at the MSN High-Speed
Marketplace. http://click.atdmt.com/AVE/go/onm00200360ave/direct/01/
Jul 18 '05 #1
0 2135

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
6524
by: kjm | last post by:
Hi Everyone, I am trying to port some old MatLab code to python, and am stuck on how to accomplish something. I am trying to write a generalized function that will create a linearly spaced vector, given the start and end point, and the number of entries wanted. In MatLab I have this function that I wrote:
5
6080
by: DAVID SCHULMAN | last post by:
I've been trying to perform a calculation that has been running into an underflow (insufficient precision) problem in Microsoft Excel, which calculates using at most 15 significant digits. For this purpose, that isn't enough. I was reading a book about some of the financial scandals of the 1990s called "Inventing Money: The Story of Long-Term Capital Management and the Legends Behind it" by Nicholas Dunbar. On page 95, he mentions that...
0
1190
by: Sam Hwang | last post by:
When an Excel xls file is shown in a winform, I can not open another xls file by double click on it in the explorer. The following are the scenarios: 1. Follows the like below to build an c# app that opens an xls file in a winform. http://support.microsoft.com/default.aspx?scid=kb;EN-US;304662 2. Run the app and open an xls file. 3. Open another xls file by double click on it from explorer. An excel
6
1425
by: VB Programmer | last post by:
When edit a page in page-layout, if you hit the <ENTER> button it always seems double spaced. If I want the controls/text to be closer together do I have to make them rows of a table and size them closer? Is this the only way?
7
1405
by: al | last post by:
Greetings, I have just finished packaging and deploying winapp. Packing went fine and so did the deplo. However, I have noticed that there are two files, not one, that were created by VB.NET. One is application.exe and the other one is installer that has all the dependencies. Any idea why is that?? MTIA, Grawsha
1
2731
by: desi.american | last post by:
I have a dynamically generates ASPX page with tables and data. Depending on user selection, the same page can be viewed as a simple web page (rendered in HTML) or as an excel spreadsheet. If the user chooses to view the page as an excel sheet, I attach the following line of code in C# in the Page_Load method. Response.ContentType = "application/vnd.ms-excel"; All this works fine. But some of cells read nvarchar fields from a database...
116
35792
by: Dilip | last post by:
Recently in our code, I ran into a situation where were stuffing a float inside a double. The precision was extended automatically because of that. To make a long story short, this caused problems elsewhere in another part of the system where that figure was used for some calculation and some eventual truncation led to the system going haywire. So my question is, given this code: int main() { float f = 59.89F;
3
2238
by: Dave | last post by:
I have a simple little database with name data. I want the user when they double click the name in the database, for a file to open up automatically which is stored in the C Drive say, I don't want Access to close though, I want it running in the background along with the newly opened file. I'm a novice at coding with events so I have no clue at all where to start with this. Any ideas techs?
2
5186
by: cendter | last post by:
Hi there, I am utterly confused - I have a form that starts an instance from excel and let's the user select a range. I then want to take this range as an array of doubles. I ran into trouble because the 1-based indexing that Excel passes (I think) so after many tries I got: Excel.Range aRange = xlApp.get_Range(textBox2.Text.Split(':'),textBox2.Text.Split(':') );
0
7993
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8404
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8268
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3900
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2418
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.