content/flux/v0/stdlib/experimental/csv/from.md
csv.from() retrieves annotated CSV from a URL.
{{% warn %}}
Experimental csv.from() is deprecated in favor of a combination of requests.get() and csv.from().
{{% /warn %}}
Note: Experimental csv.from() is an alternative to the standard
csv.from() function.
(url: string) => stream[A] where A: Record
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
({{< req >}}) URL to retrieve annotated CSV from.
import "csv"
import "http/requests"
response = requests.get(url: "http://example.com/csv/example.csv")
csv.from(csv: string(v: response.body))
import "experimental/csv"
csv.from(url: "http://example.com/csv/example.csv")