Generate an example Polars data frame with all Data Package data types.
Returns
pl.DataFrame
-
A Polars data frame matching the resource properties generated by example_resource_properties_all_types().
Examples
import seedcase_sprout as sp
sp.example_data_all_types()
shape: (3, 17)
| bool |
i64 |
f64 |
i64 |
date |
datetime[μs, UTC] |
datetime[μs] |
date |
time |
array[f64, 2] |
str |
str |
str |
list[i64] |
list[i64] |
str |
str |
| true |
12223 |
123.123 |
2012 |
2014-12-01 |
2002-10-10 11:00:00 UTC |
2002-10-10 12:44:10 |
2002-10-10 |
15:00:59 |
[-90.0, -180.0] |
"[]" |
"{}" |
"some text" |
[1] |
[1] |
"P1Y2M3DT10H30M45.343S" |
"{}" |
| true |
-123 |
inf |
-1000 |
0001-01-01 |
2002-05-12 11:40:00.340 UTC |
2002-10-10 12:00:00.340 |
0001-01-01 |
00:00:00.300 |
[5.0, 45.0] |
"[{"prop1": true}]" |
"{"outer": "value", "inner": {"… |
"æøåäöü£$%^&*()\''" |
[1] |
[1] |
"P1Y2M3DT10H30M45" |
"{}" |
| false |
0 |
2.0000e-33 |
0 |
0000-01-01 |
2019-01-20 08:30:00 UTC |
0000-01-01 00:00:00 |
0000-01-01 |
12:00:00.345345 |
[5.0, 45.0] |
"[{"prop1": "value"}, {"prop2":… |
"{"outer": "value", "inner": {"… |
"μῆνιν ἄειδε θεὰ" |
[1] |
[1] |
"P33Y6M4D" |
"{}" |