Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

193
Views
Comparando cadenas de dos columnas de archivos de Excel diferentes

Estoy tratando de comparar dos archivos de Excel usando pandas y numpy: los valores comparables son las direcciones IP. Ambos archivos de Excel tienen columnas con direcciones IP. ¿Cómo haría para verificar si coinciden y si no agregan la fila al primer archivo/marco de datos de Excel?

 #create dataframes with the excel files df1 = pd.read_excel(excel1) df2 = pd.read_csv(excel2) df1.insert(21, 'In R7', '') #fill in empty IP values so they can be compared df2['IP Address']=df2['IP Address'].fillna('0') #if IP in df1 is equal to IP in df2, add yes in R7 column, if it's not already existing add to df1 and yes in R7 column df1['In R7'] = np.where(df1['Primary IP Address'].str.contains('|'.join(df2['IP Address']), flags= re.IGNORECASE, regex = True), 'YES', '')
about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!