Questions tagged [csv-write-stream]
36 questions
11
votes
3 answers
How to Export CSV file from ASP.NET core
I am trying to migrate code from ASP.net to ASP.net core.
Where as in ASP.net code was like below,
var progresses = db.Progresses.Where(p => p.UserId == id).Include(p => p.User.UserMetaData).Include(p => p.Quiz).Include(p =>…

Rohit Borude
- 218
- 1
- 3
- 10
4
votes
1 answer
fs dump equivalent in NodeJs?
Objective
Forcing fs (and the libraries using it) to write everything to files before terminating application.
Background
I am writing an object to a CSV file using the npm package csv-write-stream.
Once the library is done writing the CSV file, I…

Flame_Phoenix
- 16,489
- 37
- 131
- 266
3
votes
0 answers
zip HUGE csv files in c#
I am working in .Net 4.7.2. We have List of objects say MyObject which is to be converted to csv single file.
Currently using below code i use to create HUGE csv file ( 10GB and onwards).
using (var writ = new StreamWriter(fileStream,…

knowdotnet
- 839
- 1
- 15
- 29
2
votes
2 answers
How to write, update, and save a CSV in AWS S3 using AWS Lambda
I am in the process of automating an AWS Textract flow where files gets uploaded to S3 using an app (that I have already done), a lambda function gets triggered, extracts the forms as a CSV, and saves it in the same bucket.
I have started this with…

Greation
- 73
- 1
- 2
- 12
2
votes
2 answers
How to write outputs of spark streaming application to a single file
I'm reading data from Kafka using spark streaming and passing to py file for prediction. It returns predictions as well as the original data. It's saving the original data with its predictions to file however it is creating a single file for each…

Prayas Pagade
- 67
- 2
- 8
1
vote
1 answer
How to write a matrix into csv C++
I'm a new learner of C++. I want to get a CSV file like this:
| S0001 | S0002 | S0003 | S0004 | ...
0 | 10.289461 | 17.012874 | |
1 | 11.491483 | 13.053712 | |
2 | 10.404887 | 12.190057 | |
3 | 10.502540 |…

Cyan
- 319
- 2
- 8
1
vote
1 answer
How to include a dropdown query into a HttpResponse view
I would like to convert to excel contents of a model after passing a filter from the dropdown selection . Here is the view.
def ConvertToExcelView(request):
response = HttpResponse(content_type='text/csv')
writer = csv.writer(response)
…

fakeMake
- 738
- 8
- 18
1
vote
2 answers
Wait for promises to complete before pushing error array of objects to CSV
I am trying to import and delete large numbers of users from Okta while staying within rate limits, and logging any errors to excel. The code below seems to be working, but there is just the issue that the last of the 5 errors I see on the console…

Jake Durell
- 169
- 1
- 12
1
vote
1 answer
How to avoid repeating header when Writing to CSV in loop?
I want to save the values of different variables in a CSV file. But it prints another header every time. I don't want this, I am attaching my CSV file snapshot for your understanding. Output csv
file_orimg = open('Org_image.csv', 'a',…
1
vote
1 answer
String buffer fails to write data to database table
I am porting a mongo database over to a PostgreSQL one and I came across with an issue. I am using psycopg2's COPY_FROM, which takes as arguments a file object, the table to write to and other optional arguments. My original code looked like the…

GRoutar
- 1,311
- 1
- 15
- 38
1
vote
2 answers
Convert a dictionary of lists to two-column csv
I have a dictionary of lists as follows:
{'banana': [1,2],
'monkey': [5],
'cow': [1,5,0],
...}
I want to write a csv that contains one number and word as follows:
1 | banana
2 | banana
5 | monkey
1 | cow
5 | cow
0 | cow
...
with | as the…

quinn
- 31
- 1
- 5
1
vote
1 answer
Generate CSV from Java object and move to Azure Storage without intermediate location
Is it possible to create a file like CSV from Java object and move them to Azure Storage without using temporary location?

Vinay Limbare
- 151
- 2
- 16
1
vote
1 answer
Node.js - write CSV file creates empty file in production, while OK in Mocha testing
This gist shows a code snippet that dumps an object into a CSV file.
File writing is done using module csv-write-stream and it returns a promise.
This code works flawlessly in all the Mocha tests that I have made.
When the code is invoked by the…

Marco Faustinelli
- 3,734
- 5
- 30
- 49
1
vote
0 answers
cant't write data in csv file
I am beginner in java and I am try to write data in csv file using apache.poi library. but csvPrinter can't write data in csv file.
URL dir = getClass().getClassLoader().getResource("csv/input.csv");
File file = new File(dir.getFile());
FileWriter…

Blugee
- 61
- 6
1
vote
3 answers
CSVWriter don't allow to write to file
I want to save my data into CSV file. I'm using Scanner to read -> CSVWriter to save.
I got error: incompatibile types: List[String] can't be converted to String[].
method:
private static void insertToFile(String source, String target)
{
…

4est
- 3,010
- 6
- 41
- 63