๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Machine Learning/Azure ML

๋ฐ์ดํ„ฐ ๋กœ๋“œ

๋ฐ˜์‘ํ˜•

 

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