nyamsprod, to php
@nyamsprod@phpc.social avatar

Coming soon in the next minor release of League\Csv 😍
still ironing the feature that you can already test on the master branch. give it a try
https://csv.thephpleague.com/9.0/reader/statement/#where-clauses

sergi, to random
@sergi@floss.social avatar

Client libraries are better when they have no API: https://csvbase.com/blog/7

davidbisset, to opensource
@davidbisset@phpc.social avatar

WhatTheDuck:

web application built on . It allows users to upload files, store them in tables, and perform queries on the data.

https://github.com/incentius-foss/WhatTheDuck

villares, to python Portuguese
@villares@ciberlandia.pt avatar
jamesog, to random
@jamesog@mastodon.social avatar

“DuckDB as the New jq” is a short but good read. I'd heard of DuckDB but not looked into it. This is a cool use-case.

https://www.pgrs.net/2024/03/21/duckdb-as-the-new-jq/

btaroli,
@btaroli@federate.social avatar

@jamesog thanks for sharing this! I’m going to have to play with it. I have some complex cases that might really benefit. I also see promise in cases where today I might translate to and then import into . Why do all that if I can query the original directly? Awesome!

hywan, to rust
@hywan@fosstodon.org avatar

USV, https://github.com/sixarm/usv.

Unicode Separated Values (USV) data markup for units, records, groups, files, streaming, and more.

A better CSV, TSV, or ASV. It uses existing UTF-8 symbols. An RFC for the IETF has been submitted, https://www.ietf.org/rfc/rfc4180.txt.

It comes with Rust crates. Even converters, like usv-to-csv and csv-to-usv (https://github.com/SixArm/csv-to-usv-rust-crate and https://github.com/SixArm/usv-to-csv-rust-crate).

Pretty neat and clever!

jgrg, to PostgreSQL
@jgrg@mstdn.science avatar

Wow! I did not know that #DuckDB can connect to #SQLite, #PostgreSQL and #MySQL databases, and freely query and move data between them, all within transactions! (This in addition to its ability to query, import and export #CSV, #Parquet, #JSON etc… file format data, which I did know.) This from today's blog post:
https://duckdb.org/2024/01/26/multi-database-support-in-duckdb.html

davidbisset, to random
@davidbisset@phpc.social avatar

Love this. "csvlens" is a command line file viewer.

https://github.com/YS-L/csvlens

amy, to random
@amy@spookygirl.boo avatar

Excel is a database and you're probably wrong if you disagree

kkarhan,
@kkarhan@mstdn.social avatar

@amy by that standard every (or rather because are inherently.superior to !) file is a .

So your bar is like really low, m8...

micheleann, to Excel
@micheleann@eldritch.cafe avatar

It's batshit that doesn't quote CSV exports by default (yes, I know the standard says "may" and not "must" and, yes, you can make custom export templates but what a pain in the ass).

(This is all you need to know about how my day is going)

micheleann, (edited )
@micheleann@eldritch.cafe avatar

But it's fine because I have an old scrip I can use to convert excel to proper .
Just need to rewrite as python3, oh, and install pandas, and openpyxl and... hey a dependency issue but that's fine.
It's all fine.

nyamsprod, to php French
@nyamsprod@phpc.social avatar

league/csv 9.13.0 with improvements around deserialization and with a new stream filter to improve support for multibyte delimiters https://github.com/thephpleague/csv/releases/tag/9.13.0

nyamsprod, to php French
@nyamsprod@phpc.social avatar

To Celebrate the 10th anniversary there a new minor release league/csv 9.12.0 with lots of exciting new features is out https://github.com/thephpleague/csv/releases/tag/9.12.0

the main feature being able to convert you CSV records into DTOs

nyamsprod,
@nyamsprod@phpc.social avatar

you will also be able to select columns, rows and cells using https://rfc-editor.org/rfc/rfc7111

The optional header argument from getRecords and getObjects is now a full mapper allowing you to select and rearrange the record.

you can also select the column using the offset or the column name indistinctively
😍 😍

image/png
image/png

gnulinux, to linux German
@gnulinux@social.anoxinon.de avatar

SQL auf CSV im Terminal

SQL-Abfragen im Terminal mit SQLite3.

https://gnulinux.ch/sql-auf-csv-im-terminal

iamdtms, to random
@iamdtms@mas.to avatar
iamdtms, to ChatGPT
@iamdtms@mas.to avatar

Who knows? vs. parsing best practice

ff3, to random
@ff3@fosstodon.org avatar

Since is shutting down, it's important to know that Mint exports to CSV. The Data Importer can handle files just fine. If some people could send me a few lines of Mint export data, I can make sure there's a tailor-made import configuration ready to go!

janriemer, to datascience

has finally reached v0.1.0, it's first ever non-alpha/-beta release! 🎉

New features like getting at the headers from the diffresult have been needed for the following PR in qsv (which is in final review):
https://github.com/jqnatividad/qsv/pull/1395

When merged, you'll be able to decide, whether the diffresult should output headers or not (see examples in the PR). :awesome:

Check out csv-diff's Changelog for the full details:
https://gitlab.com/janriemer/csv-diff/-/blob/main/CHANGELOG.md?ref_type=heads#010-30-october-2023

nyamsprod, to php French
@nyamsprod@phpc.social avatar

New PR to add object casting to League\Csv https://github.com/thephpleague/csv/pull/509
Comments/Remarks and suggestions are more than welcome


In all honesty I believe the next minor version of league csv is getting cool new features.

nyamsprod, to php French
@nyamsprod@phpc.social avatar

new release for league\csv https://github.com/thephpleague/csv/releases/tag/9.11.0

Collections methods are added to the Reader class to improve DX as well as the ability to format the records prior to accessing them using the same technique already present on the Writer class.

janriemer, to rust

Oh noes, apparently I haven't considered different delimiters for the left and right #CSV in #CsvDiff.😱

Someone reported a bug in qsv diff (which uses csv-diff) with this scenario.

https://github.com/jqnatividad/qsv/issues/1258

I'll have a look at it tomorrow.

Glad, csv-diff is actively used! ❤️

#Rust #RustLang #OpenSource #Bug #Bugs

mate, to python French
@mate@3615.computer avatar

Le problème du jour est simple :

J'ai un fichier csv qui contient une colonne de dates au format jj/mm/yyyy.

J'ai besoin de les formatter en yyy-mm-jj afin de les faire passer dans un script qui utilise ces dates pour générer un fichier .ics.

Ça marchait très bien avant mais j'ai oublier de documenter comment je formatait les dates 😕

toxi, (edited ) to typescript
@toxi@mastodon.thi.ng avatar

— CSV parsing & filtering into structured data via https://thi.ng/csv and creating a multi-plot data visualization via https://thi.ng/viz (along with a range of other helpful packages for various side aspects).

The attached visualization shows a lin-log plot of new COVID cases between March 2020 - Dec 2021:

  • Daily world total as line plot
  • UK (red) and USA (blue) cases as interleaved bar plots

(All data from: https://ourworldindata.org/coronavirus)

Full source code:
https://gist.github.com/postspectacular/6a379a2bb8cd46e242163b9c9563522f

ttpphd, to Excel
@ttpphd@mastodon.social avatar

"Crosswalker is a general purpose tool for joining columns of text data that don't perfectly match."

"The tool auto-ranks matches for each data row ...
The tool auto-matches values that are practically identical
The results are presented in an interactive spreadsheet from which you can manually continue matching
As you go, the columns are resorted to highlight the most probable remaining matches"

https://github.com/washingtonpost/crosswalker

see other cool things: @dylan
https://github.com/freedmand

nyamsprod, to php French
@nyamsprod@phpc.social avatar



the latest league/csv release 9.10.0 adds support for the long awaited feature to write new CSV rows fully enclosed 🥳🥳
https://github.com/thephpleague/csv/releases/tag/9.10.0

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • GTA5RPClips
  • slotface
  • Durango
  • khanakhh
  • kavyap
  • megavids
  • everett
  • vwfavf
  • tacticalgear
  • osvaldo12
  • cisconetworking
  • cubers
  • modclub
  • ngwrru68w68
  • Leos
  • anitta
  • normalnudes
  • tester
  • JUstTest
  • All magazines