Advertisement
elena1234

left merge with Pandas

Feb 11th, 2023 (edited)
850
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | Source Code | 0 0
  1. import pandas as pd
  2. import matplotlib.pyplot as plt
  3. import seaborn as sns
  4. import numpy as np
  5. pd.options.display.max_columns = 30
  6. pd.options.display.float_format = '{:.2f}'.format
  7.  
  8.  
  9. df_actors_last = df_actors_last.merge(df[['title', 'revenue_musd', 'vote_average', 'popularity']],
  10.                                       how = 'left', left_index = True, right_index = True)
  11.  
  12. df_actors_last
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement