IBM Support

How to convert data set in csv file format to parquet file format and store it in Project Asset

Question & Answer


Question

By using pandas library to_parquet(), we can easily convert data set in csv file format to parquet file format. However, when I tried to use ibm_watson_studio_lib library save_data(), I got following error:
RuntimeError: Argument "data" must be a bytes-like object. Use str.encode() to convert character data.

image-20230311211836-1
Could you tell me how to store the converted parquet file to CP4D Project Asset?


[{"Type":"MASTER","Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSHE3N","label":"IBM Watson Studio Premium for IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m50000000ClW2AAK","label":"Organize-\u003ETransform Data"}],"ARM Case Number":"TS012251438","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Watson Studio Premium for IBM Cloud Pak for Data

Component:
Organize->Transform Data

Software version:
All Versions

Document number:
6962995

Modified date:
15 March 2023

UID

ibm16962995

Manage My Notification Subscriptions