You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure whether it's a feature request or documentation enhancement, so posing it as a question for now.
I looked through all the examples in the repo, but only found examples using CsvConnector. Curious how to connect and load data that are not csv, for example, how to use a pandas dataframe. This is a common use case, because we often read data from some database or cloud storage (ie non-csv).
The text was updated successfully, but these errors were encountered:
Now we support DataFrameConnector in new release 0.2.4 just like this:
frompathlibimportPathpath_obj=Path(file_path)
# Create a data connector and data loader for large csv data# SDG will load data with chunk, can reduce memory usage.data_connector=CsvConnector(path=path_obj)
# For small data you can use DataFrameConnector# from sdgx.data_connectors.dataframe_connector import DataFrameConnector# data_connector = DataFrameConnector(dataframe)data_loader=DataLoader(data_connector)
❓Search before asking
I have searched for issues similar to this one.
❓Description
I'm not sure whether it's a feature request or documentation enhancement, so posing it as a question for now.
I looked through all the examples in the repo, but only found examples using
CsvConnector
. Curious how to connect and load data that are not csv, for example, how to use a pandas dataframe. This is a common use case, because we often read data from some database or cloud storage (ie non-csv).The text was updated successfully, but these errors were encountered: