Skip to main content

File Manipulation - Convert CSV

Overview

Convert one or more CSV files into a TSV, PSV, XLSX, Parquet, DTA, or HDF5 file.

The match type selected greatly affects how this Blueprint works.

This Blueprint uses built-in Pandas methods to read in a CSV file and output it as another file type.

Variables

NameReferenceTypeRequiredDefaultOptionsDescription
Destination File FormatMANIPULATION_DESTINATION_FILE_FORMATSelecttsvTab-Separated File (.tsv): tsv

Pipe-Separated File (.psv): psv

Excel File (.xlsx): xlsx

Parquet (.parquet): parquet

Stata (.dta): stata

HDF5 (.h5): hdf5
Type of file that you want the CSV file(s) converted into.
Local Folder NameMANIPULATION_SOURCE_FOLDER_NAMEAlphanumeric--Name of the local folder on Shipyard where the target file lives. If left blank, will look in the home directory.
Local File Name Match TypeMANIPULATION_SOURCE_FILE_NAME_MATCH_TYPESelectexact_matchExact Match: exact_match

Regex Match: regex_match
Determines if the text in "Local File Name" will look for one file with exact match, or multiple files using regex.
Local File NameMANIPULATION_SOURCE_FILE_NAMEAlphanumeric--Name of the target file on Shipyard. Can be regex if "Match Type" is set accordingly.
New Folder NameMANIPULATION_DESTINATION_FOLDER_NAMEAlphanumeric--Folder where the newly converted file(s) should be created on Shipyard. Leaving blank will place the file in the home directory. If the folder does not already exist, it will be created.
New File NameMANIPULATION_DESTINATION_FILE_NAMEAlphanumeric--What to name the newly converted files on Shipyard. If left blank, defaults to the original file name(s) with an updated extension based on the selected file format.