90,270 questions
Score of 0
0 answers
35 views
loadTextEx reports "Number of columns is inconsistent" despite matching schema and target table columns
I'm using loadTextEx to import a CSV into a partitioned table. I generated the schema with extractTextSchema, which shows the same number of columns as the target table. But loadTextEx still throws a ...
Advice
1
vote
4
replies
114
views
How to display the contents of a CSV file, with rows filtered by the value in the timestamp column
Is it possible for a Python 3 script to:
Read a CSV file (and display a loading screen/progress indicator while doing so);
Only display rows/results where the 'status' column value is set to '...
Score of 0
0 answers
50 views
Import compressed TongLian data files directly or need to decompress first?
I'm working with compressed data files from TongLian (éèæ°æ®), delivered as .zip archives. I'm wondering if DolphinDB can load the data directly from the .zip file, or if I need to decompress before ...
Tooling
0
votes
1
replies
125
views
How can I read a CSV file, sum the âBetragâ column, count rows, and group totals by tenant?
I have a CSV file exported from Excel. It contains at least these two columns:
Betrag (numeric amounts)
tenant (string identifier)
I want to:
Read the CSV file
Calculate the total sum of the ...
Tooling
0
votes
5
replies
126
views
Comparison of Two CSV Files with a Large Number of Columns Spanning Multiple Lines (Generated from an SQL*Plus Spool)
I have these two CSV files and I have already tried using Copilot without success.
https://drive.google.com/file/d/1GURMVn10LCMQFHOVpgwcW-6SUnqDBO01/view?usp=drive_link
https://drive.google.com/file/d/...
Best practices
1
vote
15
replies
318
views
How do I properly handle UTF8 encoded CSV files
I have code that imports spreadsheets of 2 columns of numbers for a scientific application.
While creating some test files with excel, I inadvertently created one with "CSV UTF-8" encoding. ...
Best practices
0
votes
2
replies
133
views
How to incrementally merge daily CSV delta updates into a master file without losing expired records?
I am building a data pipeline to create a cumulative master dataset from daily CSV exports generated by a booking system.
Context & Data Structure
Source: A daily CSV file containing status ...
Best practices
0
votes
1
replies
67
views
CSV Column Structure Evolution Snowflake
I'm stuck with a client's request.
Context: Ingestion of CSV files from a S3 bucket to a table in Snowflake. In addition, I need to add three columns, one with the current date, one with the name of ...
Score of 0
0 answers
71 views
Azure Fabric - Lakehouse SQL endpoint - CSV with non UTF codepage
I'm trying to use OPENROWSET over a very simple CSV file with only 3 columns
col1;col2;col3
FRANK;998533805;20.06
FINSÃ
S KARL;999999;10.05
RÃNNING FRANK KARL;999999;7.05
but since the encoding of the ...
Score of 3
3 answers
164 views
Write multi-columns to CSV with for loop
This code snippet contains bpy. I am trying to write data to a three column CSV. The first column is the vertex index, the second column is the U coordinate, and the third column is the V coordinate.
...
Score of 1
0 answers
64 views
CsvValidator optional header column
I am using the UK National Archives CSV Validator via the Maven dependency uk.gov.nationalarchives:csv-validator-java-api-1.4.0.jar to validate both the headers and the body of CSV/txt files.
I am ...
Score of 1
2 answers
130 views
download csv file from OSF
I am trying to download a .csv file from a Public Open Science Framework (OSF) project through my script on GitHub. I do not want to download a local copy.
I've tried using two different options for ...
Score of 3
5 answers
250 views
Fusing row with previous row(s) depending on criteria
I'm trying to fix a CSV file I received in which actual new lines were inserted throughout the data, effectively splitting one row of data into multiple ones with incomplete columns. The line breaks ...
Score of 3
2 answers
200 views
Python polars script leaks memory and crashes (scans CSV to lazyframes - writes to database)
I wrote a small script to scan a CSV in Python polars, select specific columns/filter specific rows in lazyframes and upload the result to a Postgres DB.
The script works with a smaller test CSV but, ...
Advice
0
votes
2
replies
98
views
How can I save a CSV file locally in a Flutter app so it persists within the app?
I'm building a Flutter app and I need to generate and save a CSV file from within the app. My goal is for the file to be stored locally on the device so that it persists between app launches and ...