I tried vertical merge with 2 files that were each a single column of items (no header). The resulting file was 3 columns wide, 1 file in first column with second and third columns blank and then below that the items from the second file were in the 3rd column with columns 1 and 2 blank
I was expecting a 1 column result file with both files items stacked
With that said, thanks for commenting! I will add an option for "No Header" files, or maybe even auto detect for these situations and do a straight merge:)
The code is not open source. However, If you inspect the network traffic from Chrome developer tools you can verify there are 0 post events occurring.
True, you can do this with many languages like python (quite easily with pandas as you pointed out) or with awk, perl, even cat (minus ordering) etc. For more power users Excel Power Query is your friend, but as you know these require script setup and memory considerations.
This tool is geared for ease of use anyone can do without the fuss of custom scripts and/or setups and for the most part almost zero memory concerns as the output is being written on the fly.
Glob is great but on some OS (Linux maybe?) it doesn't guarantee maintaining the order of files. If order matters, it would make sense to sort the results prior to processing.
Funny thing is several years ago I made a very similar tool to what you pointed out above written entirely in bash/awk and is also blazing fast.
That's where I got the idea for this online tool. I wanted to create the same exact concept of working with files locally without having to open up a terminal/console.
11 comments
[ 2.1 ms ] story [ 35.4 ms ] threadI was expecting a 1 column result file with both files items stacked
For example if you had two csv files...
[File1.csv]
[File2.csv] Final output would be...[Output.csv]
With that said, thanks for commenting! I will add an option for "No Header" files, or maybe even auto detect for these situations and do a straight merge:)(You can also recreate this functionality locally with a few lines of Python):
import pandas as pd
import os
list_of_files = [f for f in os.listdir('.') if os.path.isfile(f) and ".csv" in f]
print(f"Files that will be concatenated are: {list_of_files}")
original_df = pd.DataFrame()
for file in list_of_files:
original_df.to_csv(f"Output file.csv", index=False)True, you can do this with many languages like python (quite easily with pandas as you pointed out) or with awk, perl, even cat (minus ordering) etc. For more power users Excel Power Query is your friend, but as you know these require script setup and memory considerations.
This tool is geared for ease of use anyone can do without the fuss of custom scripts and/or setups and for the most part almost zero memory concerns as the output is being written on the fly.
Here's how it's done in JS: https://repl.it/@caub/csv-merge
Funny thing is several years ago I made a very similar tool to what you pointed out above written entirely in bash/awk and is also blazing fast.
That's where I got the idea for this online tool. I wanted to create the same exact concept of working with files locally without having to open up a terminal/console.