Skip to main content

If you want to check equalsequal values on a certain column, let's say NameName, you can mergemerge both DataframesDataFrames to a new one:

mergedStuff = pd.merge(df1, df2, on=['Name'], how='inner')
mergedStuff.head()

I think this is more efficient and faster thenthan whereif if you have a big data set.

If you want to check equals values on a certain column let's say Name you can merge both Dataframes to a new one:

mergedStuff = pd.merge(df1, df2, on=['Name'], how='inner')
mergedStuff.head()

I think this is more efficient and faster then whereif you have a big data set

If you want to check equal values on a certain column, let's say Name, you can merge both DataFrames to a new one:

mergedStuff = pd.merge(df1, df2, on=['Name'], how='inner')
mergedStuff.head()

I think this is more efficient and faster than where if you have a big data set.

corrected method call
Source Link
Tarek
  • 724
  • 5
  • 9

If you want to check equals values on a certain column let's say Name you can merge both Dataframes to a new one:

mergedStuff = pd.merge(df1, df2, on=['Name'], how='outer'how='inner')
mergedStuff.head()

I think this is more efficient and faster then whereif you have a big data set

If you want to check equals values on a certain column let's say Name you can merge both Dataframes to a new one:

mergedStuff = pd.merge(df1, df2, on=['Name'], how='outer')
mergedStuff.head()

I think this is more efficient and faster then whereif you have a big data set

If you want to check equals values on a certain column let's say Name you can merge both Dataframes to a new one:

mergedStuff = pd.merge(df1, df2, on=['Name'], how='inner')
mergedStuff.head()

I think this is more efficient and faster then whereif you have a big data set

Source Link
Tarek
  • 724
  • 5
  • 9

If you want to check equals values on a certain column let's say Name you can merge both Dataframes to a new one:

mergedStuff = pd.merge(df1, df2, on=['Name'], how='outer')
mergedStuff.head()

I think this is more efficient and faster then whereif you have a big data set