After you create a project, the next step is to add data assets to it so that you can work with data. All the collaborators in the project are automatically authorized to access the data in the project.
Different asset types can have duplicate names. However, you can't add an asset type with the same name multiple times.
You can use the following methods to add data assets to projects:
Method | When to use |
---|---|
Add local files | You have data in CSV or similar files on your local system. |
Add Samples data sets | You want to use sample data sets. |
Create database connections | You need to connect to a remote data source. |
Add data from a connection | You need one or more tables or files from a remote data source. |
Add connected folder assets from IBM Cloud Object Storage | You need a folder in IBM Cloud Object Storage that contains a dynamic set of files, such as a news feed. |
Convert files in project storage to assets | You want to convert files that you created in the project into data assets. |
Add local files
You can add a file from your local system as a data asset in a project.
- Required permissions
-
You must have the Editor or Admin role in the project.
- Restrictions
-
- The file cannot be empty.
-
- The file name can’t contain these characters:
< > : ” / | ( ) ?
- The file name can’t contain these characters:
-
- The file name can't exceed 255 characters.
-
- The maximum size for files that you can load with the UI is 5 GB. You can load larger files to a project with APIs.
To add data files to a project:
-
From your project's Assets page, click the Upload asset to project icon (). You can also click the same icon () from within a notebook or canvas.
-
In the pane that opens, browse for the files or drag them onto the pane. You must stay on the page until the load is complete. You can cancel an ongoing load process if you want to stop loading a file.
The files are saved in the object storage that is associated with your project and are listed as data assets on the Assets page of your project.
When you click the data asset name, you can see this information about data assets from files:
- The asset name and description
- The tags for the asset
- The name of the person who created the asset
- The size of the data
- The date when the asset was added to the project
- The date when the asset was last modified
- A preview of the data, for CSV, Avro, Parquet, TSV, Microsoft Excel, PDF, text, JSON, and image files
- A profile of the data, for CSV, Avro, Parquet, Microsoft Word, PDF, text, and HTML files
You can update the contents of a data asset from a file by adding a file with the same name and format to the project and then choosing to replace the existing data asset.
You can remove the data asset by choosing the Delete option from the action menu next to the asset name. Choose the Prepare data option to refine the data with Data Refinery.
Add Samples data sets
You can add data sets from Samples to your project:
- In Samples, find the card for the data set that you want to add.
- Click the Add to Project icon from the action bar, select the project, and click Add.
This video provides a visual method to learn the concepts and tasks in this documentation.
Convert files in project storage to assets
The storage for the project contains the data assets that you uploaded to the project, but it can also contain other files. For example, you can save a DataFrame in a notebook in the project environment storage. You can convert files in project storage to assets.
To convert files in project storage to assets:
- From the Assets tab of your project, click Import asset.
- Select Project files.
- Select the data_asset folder.
- Select the asset and click Import.
Next steps
Parent topic: Preparing data