Questions tagged [export-to-csv]

A set of techniques to write a CSV (Comma-Separated Values) file from a data source. CSV files store data in plain-text form, allowing great usability and they often are used as a way to exchange data from information systems

Filter by
Sorted by
Tagged with
-2 votes
1 answer
33 views

PHP create a CSV file with Windows-1252 encoding

I want to generate and save a CSV file with "Windows-1252" encoding. My base code : $filename = 'path/to/file.csv'; $file = fopen($filename, 'w'); $datas[] = [ "data 1", &...
jake.mactavish's user avatar
0 votes
1 answer
33 views

Write to multiple CSV files within Oracle SQL script

I have a requirement to generate a series of reports (in csv format) based on data held in an oracle database (v19.20). The reports are to be generated by running a shell script on a local server ...
nick_j_white's user avatar
0 votes
0 answers
26 views

How to convert JSON file nested arrays in CSV with jq

I'm new to JSON and Jq. I'm facing this problem. With the REST APIs GET method a supplier give me data I need to feed my ERP's database with a JSON formatted file, like this { "AWB":&...
Marco's user avatar
  • 1
0 votes
0 answers
41 views

AttributeError: 'NoneType' object has no attribute 'update' when trying to add files to a csv file

I've been working on an expense manager in python where you can import you spending from CSV file add more put them in a chart etc then you could export the info into CSV file but then faced this ...
BLAZE GAMING's user avatar
-2 votes
1 answer
45 views

TypeError: unsupported format string passed to list.__format__ while trying to export a dictionary to a csv file

I have seen this YouTube tutorial for a Python expense tracker and trying to add more functionality by allowing you to import or export data to a CSV. I keep facing errors. I also tried to make a ...
BLAZE GAMING's user avatar
-1 votes
0 answers
57 views

ADF pipeline error while exporting the .csv file through SFTP server

I have been trying to export the .csv formatted file from azure data factory (adf) via SFTP server. But unfortunately, it resulting with an error: "Job failed due to reason: at Sink 'bigquery': ...
varunkumar madishetty's user avatar
-2 votes
0 answers
28 views

Which GPS Camera app can export csv file?

Create connection lines between 2 points in ArcGIS Pro https://support.esri.com/en-us/knowledge-base/how-to-create-connection-lines-between-two-points-from-000027447 Create Lines from csv points using ...
Zafar Ali Khokhar's user avatar
-1 votes
1 answer
58 views

Quotes around records using csv.writer

I have: datafile = csv.writer(open(filename, 'a', newline='')) result_set = source_mysql_cursor.fetchall() print (result_set) datafile.writerows(result_set) The csv looks: "item1,...
Pythonist's user avatar
0 votes
0 answers
43 views

Problem extracting scan results with Metasploit using Python

I'm trying to extract the scan results for each ip address from RHOSTS, but the problem is that the scan results are displayed for some ip addresses and others not , here is my code: #!/usr/bin/env ...
Michel Guilavogui's user avatar
0 votes
1 answer
33 views

Splitting a column into 2 for csv, fails if one name

I need to export contacts from multiple people, and modify the tab deliminted file to a csv in a specific way. The exported file only has two columns, Name and Email, but I need it to be Email, Name, ...
Justin Jasper's user avatar
1 vote
1 answer
34 views

Selecting the first item with a matching term in an array using JQ

I have the following JSON format: "MediaContainer": { "Metadata": [ { "Key": "5d77682c151a60001f24bbe8", ...
Mike Davis's user avatar
-2 votes
0 answers
72 views

Python CSV Writer: parser does not write rows correctly into CSV

My use case is the following: Read from oracle's table and write it to 10 files. I append several fecthes to each file, to avoid going beyonnd my limit. So far, so godd. Today it started failing on 1/...
neverMind's user avatar
  • 1,753
2 votes
2 answers
46 views

Editing a CSV with powershell, but only one column is unexpectedly exported

I'm trying to take a CSV, a tab delimited txt file, and change one of the columns from 'last name, first' to ' First name last name'. I think I am nearly there with getting it into the right format ...
Justin Jasper's user avatar
-1 votes
1 answer
64 views

Application of Python for loops for beginner

I am new to Python and struggling a bit with loops. I am trying to loop a series of tasks in a specific software. I have a dialog box that opens to imput the number of times I would like these tasks ...
CulpJames's user avatar
0 votes
0 answers
54 views

Add empty header for some columns in dataframe or csv

I am trying to add some data above the headers in a csv file, but it has to have the last 3 columns new header empty. My csv looks like this: I have tried to create a new csv with the specific data ...
Osiris's user avatar
  • 1
0 votes
1 answer
32 views

Is it possible to make an API call to CSV?

I'm trying to access the data in this URL: http://files.intelligentreach.com/feedexports/bec25c7e-cbcd-460d-81d5-a25372d2e3d7/Currys_Zoovu_Template.csv How can I dynamically access this data? Can I ...
Ozge Cokyasar's user avatar
0 votes
0 answers
42 views

How can I export the results of my dredge function model given the errors I am getting?

I used lme4 to generate general linear negative binomial models, and dredge to run all combinations of the variables that I had determined were important. However, when I attempted to export the ...
CorinthianHelm's user avatar
0 votes
3 answers
95 views

Parse multilevel json into a csv using jq tool in unix

I have a multilevel json like so: { "id": "id123", "details": { "prod": "prod123", "etype": "type1" }, ...
Abhishek Jain's user avatar
1 vote
2 answers
92 views

Convert .json to .csv

jq version jq-1.6 on Ubuntu 22.04.2 LTE Looking to convert large .json file to .csv json example: {"_id":{"$oid":"5200a366e36f237975000783"},"derived_form":{&...
faszikam's user avatar
-1 votes
1 answer
41 views

Django Csv: Having trouble with writerow

This is basicly my code: def export_to_excel(request): response = HttpResponse(content_type='text/csv') response['Content-Disposition'] = 'attachment; filename=responds.csv' writer = csv....
burak's user avatar
  • 133
0 votes
0 answers
9 views

How do I save the class of the detected object in Detectron2

classes = outputs['instances'].pred_classes.to('cpu') boxes = outputs['instances'].pred_boxes.to('cpu') frame_df = pd.DataFrame({'Classes': classes, 'Boxes': boxes}) df = pd.concat([df, ...
Bipul Adhikari's user avatar
0 votes
0 answers
15 views

How can I create a csv file from this tcpdump txt file in python?

Hi everyone, I would like to turn this tcpdump (only DNS queries and responses) into a CSV file to train an ML model for an IDS. I managed to train the model already, but the reason it does not work ...
Horace Horvath's user avatar
1 vote
1 answer
64 views

CSV Export from Bigquery having columns surrounded with double quotes adding not working

I am trying to export a table as CSV file in GCS bucket from Google Big Query console with export command, but facing issues with double quotes. I want to export as csv but every column value should ...
Vikram Kumar's user avatar
0 votes
1 answer
66 views

How to run a stored procedure with parameters using bcp command against SQL Azure database

I have a stored procedure which needs 2 mandatory input parameters. I need to run that stored procedure using bcp command and export the results to a csv file. Note: the stored procedure is hosted in ...
Vinny's user avatar
  • 495
-1 votes
1 answer
91 views

write csv with encoding cp1252 with python 3.12

I import data from txt-files that are encoded in utf-8 and from xml files. Data from both formates are transformed and put separately in a pandas dataframe (one for the imported txt-file, one for the ...
Peter's user avatar
  • 1
0 votes
2 answers
76 views

kdb/q How can I save a Dictionary?

I have a dictionary and I'm trying to save using kdb/q. To save my dictionary, I try the same method as I would a table: save `output.csv However, my output dictionary (type 99h) gives me an error: q)...
mmv456's user avatar
  • 25
0 votes
1 answer
77 views

TIMESTAMP data export from snowflake to Excel

Whenever I export the result set from a Snowflake query using the "Download a .csv for Excel" (image shown below), I find that the timestamp columns are always formatted as 2023-05-31T02:54:...
stack_pointer is EXTINCT's user avatar
0 votes
1 answer
63 views

PDF Scraping - All Objects Passed were None

I am attempting to create a simple pdf scraper using pandas and pdfquery. I want to take the data I need from each page of the PDF by using the xml coordinates, put it into a dataframe and then save ...
Andrew Martin's user avatar
1 vote
1 answer
45 views

Add Log entry on Model Export Actions

I have enabled Log entries in the Django Admin class CustomLogEntryAdmin(admin.ModelAdmin): list_display = [ "action_time", "user", "content_type&...
Sami Malik's user avatar
0 votes
0 answers
39 views

Making export-From-JSON work with JSpreadsheet CE to export files

I'm using JSpreadSheet CE and i want to export the json to XLSX, XLS, CSV with export-from-json. The problem is JSpreadsheet CE give me this object: [ [ "Ticker", "...
Gino's user avatar
  • 1,845
0 votes
1 answer
75 views

Pandas to csv function issue

I am trying to create a dataframe using dictionary data structure and convert it csv file in my local downloads folder but the file is not downloading nor it has appeared in my local path. please find ...
Arjun M's user avatar
0 votes
1 answer
58 views

How to export the result of a query in Oracle SQL to a .csv file? [duplicate]

I have a problem when I try to export the result of a query in SQL to a .csv file. When I try to execute the following query in SQL, it only exports an empty .csv file. In other words, it creates a ...
Joao Martín Vidarte Chinchay's user avatar
-1 votes
1 answer
55 views

javascript export object to csv as a table

I have a JS object (called df) that contains a number of arrays like so: 0: Array(2) 0: "1405" 1: "text string 1 #something" 1: Array(2) 0: "1366" 1: "text ...
DrPaulVella's user avatar
1 vote
1 answer
45 views

Downloading Google Sheet as CSV only downloads first sheet

Trying to download Google sheet as CSV in such a way as to keep the formatting of timestamps I can do this with the following gas script. But it only downloads the first sheet. I want to be able to ...
xyz333's user avatar
  • 711
0 votes
2 answers
64 views

Why is this VBA script corrupting files?

I've created a VBA script to save an xlsx file as a semi-colon-del CSV format, but unfortunately, it's corrupting the output/CSV file when it saves (in notebook I see only PK ). Can anyone give me ...
Julie Dixon's user avatar
0 votes
0 answers
46 views

Django: Unknown command: 'loadcsv'

I get the error Unknown command: 'loadcsv' Type 'manage.py help' for usage. when trying: python manage.py loadcsv --csv reviews/managment/commands/WebDevWithDjangoData.csv why I am getting this error?...
VOZ ESTOICA's user avatar
0 votes
1 answer
51 views

Convert JSON objects to table structure in Python

I have some JSON with an 'items list. I want to convert it to semicolon separated file with headers I want to produce lines in this format: id, date, order[x][0], order[x][1], ... My issue is that I ...
Jeppe's user avatar
  • 1,444
1 vote
2 answers
70 views

Python3: Writing Nested Dictionary to CSV

I'm trying to write the following nested dictionary to a CSV with headers. headers = [ 'Location', 'Agent', 'Sales', 'Renewals', 'Leaves'] data = {'Location1' : {'Bob': {'Sales': 2, 'Renewals': 1, '...
NTWGray's user avatar
  • 29
0 votes
1 answer
143 views

How to export and import data in a .Net Maui Blazor Hybrid App (if possible)?

What options do I have to exchange data from a Maui Blazor Hybrid App. Can I create a .csv file and save it to the 'download'-folder of an android phone? Like saving a .pdf from a browser. What must ...
nogood's user avatar
  • 1,159
1 vote
0 answers
38 views

Cant export csv format in PLSQL developer

I have been having a weird issue for months. I use PL/SQL Developer. I need to export data multiple times a day but it needs to be in csv format. Anytime I try to export in csv format to my teams ...
jamster126's user avatar
0 votes
1 answer
30 views

ERROR 1086 (HY000) at line 3: File '/var/lib/mysql-files/file_name.csv' already exists

I want to retrieve data from the db every 15 minutes. However, the code below does not work as I want. I need to run manually and insert a password every time to retrieve the data even tho I already ...
1234567's user avatar
2 votes
2 answers
67 views

Powershell, remove spaces between values

When i export to a csv file, i get spaces on either side of a pipline that i need between two to diffrent values in the same cell. However i need to get rid of the spcaces before i import it to a ...
user22694243's user avatar
0 votes
0 answers
15 views

Did Google Sheets publish URLs start using redirects? [duplicate]

I have a Google Sheets document and using the CSV publish URL with a custom control system application that loads and parses data. It was a URL in the format of "https://docs.google.com/...
Nick Marques's user avatar
0 votes
0 answers
19 views

pagination in same csv file using fast-csv package in nodejs

i am trying to upload my data from mongodb to my csv file but problem is that i only want to add particular amount of data in one sheet and the remaining should be inserted in another sheet in that ...
Arshad Khan's user avatar
-1 votes
1 answer
57 views

Any alternatives for python candas

I have been working the conversion of blf to csv using python candas, but it is taking too long. Can anyone suggest me the best solution. import candas as cd db = cd.load_dbc("dbc_folder") ...
Hello Hai's user avatar
1 vote
1 answer
47 views

Using Python with Regex to search for lines with specific words, and then append those lines to CSV column headings

I have a long text file called 'maps.txt'. It contains large amounts of data divided into sections. Each section with with its own title: measured burnup - core 140828~a *a bunch of data* channel ...
Joe Blough's user avatar
1 vote
0 answers
40 views

Processing OCO2 netCDF data with python

Update: I managed to extract XCO2 and average it monthly. Still, I need to find a solution to clip it on my specific shape as for now I am using a box defined by latitude and longitude around the ...
Lars T's user avatar
  • 11
0 votes
0 answers
48 views

Convert Nested JSON to csv using PowerShell

I am converting nested json to csv, but i am getting empty file created. below is the sample json file { "reports": [ { "columnHeader": { "dimensions&...
pavan kumar kasaraneni's user avatar
0 votes
2 answers
78 views

Pandas line break on each comma separated list item when exporting to CSV

I am using the following code using Pandas to export some data to Excel. The data is nothing but a List of some type. In this list, one of the items is a list again (Location). Here is a screenshot (...
nikhil's user avatar
  • 1,628
-1 votes
2 answers
68 views

Snowflake copy into Non Ascii character Ú

File is being exported using below code. When we try to do a copy into in snowflake , we are having issue in loading the file to snowflake. What would be the delimiter here that can be used in ...
gayathri's user avatar

1
2 3 4 5
106