Skip to main content

CSV

Load CSV files in a Fused UDF using pandas. Upload a CSV file to your Fused environment's S3 bucket through the file browser or link to a public CSV file.

@fused.udf
def udf():
import pandas as pd

# Read csv file
df = pd.read_csv("https://pasteur.epa.gov/uploads/10.23719/1528686/SupplyChainGHGEmissionFactors_v1.2_NAICS_CO2e_USD2021.csv")
return df