read_pandas_dataframe
Creates a new Dataflow based on the contents of a given pandas DataFrame.
โ
Parameters
df
pandas DataFrame to be parsed and cached at 'temp_folder'.
โ
temp_folder
path to folder that 'df' contents will be written to.
โ
overwrite_ok
If temp_folder exists, whether to allow its contents to be replaced.
โ
in_memory
Whether to read the DataFrame from memory instead of persisting to disk.
โ
Returns
Dataflow that uses the contents of cache_path as its datasource.
โ
Remarks
If 'in_memory' is False, the contents of 'df' will be written to 'temp_folder' as a DataPrep DataSet. This folder must be accessible both from the calling script and from any environment where the Dataflow is executed.
If the Dataflow is guaranteed to be executed in the same context as the source DataFrame, the 'in_memory' argument can be set to True. In this case, the DataFrame does not need to be written out. This mode will usually result in better performance.
โ
์ฐธ๊ณ
The column names in the passed DataFrame must be unicode strings (or bytes). It is possible
to end up with Integer types column names after transposing a DataFrame. These can be
converted to strings using the command:
df.columns = df.columns.astype(str)
import azureml.dataprep as dprep
// dprep.read_sql ์จ์ ํ๋ ค๋๊น ์ ์๋จ..
// dataframe ์์ dataflow๋ก ๋ณ๊ฒฝํ ๋ dprep.read_pandas_dataframe(df=df, in_memory=True)
https://docs.microsoft.com/ko-kr/python/api/azureml-dataprep/azureml.dataprep?view=azure-ml-py
azureml.dataprep package - Azure Machine Learning Python
Main Data Prep module that contains tools to load, analyze and manipulate data. To learn more about the advantages, key functionalities and supported platforms of Data Prep, you may refer to https:/หบka.msโฟta-prep-sdk.
docs.microsoft.com
https://docs.microsoft.com/ko-kr/azure/machine-learning/service/how-to-load-data
๋ก๋: Data Prep Python SDK - Azure Machine Learning service
Azure Machine Learning Data Prep SDK๋ฅผ ์ฌ์ฉํ์ฌ ๋ฐ์ดํฐ๋ฅผ ๋ก๋ํ๋ ๋ฐฉ๋ฒ์ ์์๋ด ๋๋ค. ๋ค์ํ ํ์์ ์ ๋ ฅ ๋ฐ์ดํฐ๋ฅผ ๋ก๋ํ๊ฑฐ๋, ๋ฐ์ดํฐ ํ์ผ ํ์ ๋ฐ ๋งค๊ฐ ๋ณ์๋ฅผ ์ง์ ํ๊ฑฐ๋, SDK ์ค๋งํธ ์ฝ๊ธฐ ๊ธฐ๋ฅ์ ์ฌ์ฉํ์ฌ ํ์ผ ํ์์ ์๋์ผ๋ก ๊ฒ์ํ ์ ์์ต๋๋ค.
docs.microsoft.com
'Machine Learning > Azure ML' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Azure ML ์์ (0) | 2019.06.25 |
---|---|
AKS ํด๋ฌ์คํฐ ๋ง๋ค๊ธฐ (0) | 2019.06.25 |
Azure Machine Learning (0) | 2019.05.15 |