concept two DataFrames in category dask

appears as: two DataFrames, two DataFrames
Data Science with Python and Dask

This is an excerpt from Manning's book Data Science with Python and Dask.

Up to this point, we’ve relied solely on Dask’s default numeric index for our dataset. This has served us fine so far, but we’ve reached a point where ignoring the benefits of using a more suitable index could cause some serious performance issues. This becomes especially important when we want to combine multiple DataFrames, which is precisely what we’ll talk about in the next section of the chapter. While it’s possible to combine DataFrames that aren’t index aligned, Dask must scan both DataFrames for every possible unique combination of keys used to join the two DataFrames together, making it quite a slow process. When joining two DataFrames that have the same index, and are both sorted and partitioned in index order, the join operation is much faster. Therefore, to prepare our data for joining to another dataset, we’ll adjust the index and partitions to align with the other dataset.