I have a 2 csv files one with 2.5gb and one with 450mb. I am using datastore to upload these function and need something like "outer join" to merge them. Any ideas?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a 2 csv files one with 2.5gb and one with 450mb. I am using datastore to upload these function and need something like "outer join" to merge them. Any ideas?
0 Kommentare
Antworten (1)
Pratyush Swain
am 28 Mär. 2025
Hi Rathies,
You can utilise the 'datastore' and 'outerjoin' functions to achieve this. Please refer to this example implementation:
% Create datastore objects for both CSV files
ds1 = datastore('file1.csv');
ds2 = datastore('file2.csv');
% Convert to tall tables
t1 = tall(ds1);
t2 = tall(ds2);
% Perform outer join
mergedTable = outerjoin(t1, t2, 'MergeKeys', true);
Datastores enable you to work with large data sets in small blocks that individually fit in memory, instead of loading the entire data set into memory at once. Tall arrays extend this capability to enable you to work with out-of-memory data using common functions.
For more information, please refer to following documentation links:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Big Data Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!