Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from azureml.core import Dataset
import pandas as pd
# The default datastore is a blob storage container where datasets are stored
datastore = ws.get_default_datastore()
# Load some data into a dataframe (Note: Pandas is just one path into Azure ML)
df = pd.read_csv('my_data.csv')
# Register the dataset
ds = Dataset.Tabular.register_pandas_dataframe(
dataframe=df,
name='DataSet-Name',
description='A description of my dataset',
target=datastore
)
# Display information about the dataset
print(ds.name + " v" + str(ds.version) + ' (ID: ' + ds.id + ")")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment