79221229

Date: 2024-11-24 23:06:57
Score: 2.5
Natty:
Report link

does the following satisfy your requirement?

cat test.py 
import polars as pl
import duckdb
data = pl.DataFrame({"a":[1,2,3,]})
duckdb.sql("COPY (select * from data) to 'test.csv'")
$ python test.py
$ cat test.csv 
a
1
2
3
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: ticktalk