code: def test_monthlyWithEvents2(self):
      # Simply check no exception from internal merge
      dfm = yf.Ticker("ABBV").history(period="max", interval="1mo")
      dfd = yf.Ticker("ABBV").history(period="max", interval="1d")
      dfd = dfd[dfd.index > dfm.index[0]]
      dfm_divs = dfm[dfm["Dividends"] != 0]
      dfd_divs = dfd[dfd["Dividends"] != 0]
      self.assertEqual(dfm_divs.shape[0], dfd_divs.shape[0])
  
      dfm = yf.Ticker("F").history(period="50mo", interval="1mo")
      dfd = yf.Ticker("F").history(period="50mo", interval="1d")
      dfd = dfd[dfd.index > dfm.index[0]]
      dfm_divs = dfm[dfm["Dividends"] != 0]
      dfd_divs = dfd[dfd["Dividends"] != 0]
      self.assertEqual(dfm_divs.shape[0], dfd_divs.shape[0])
  
imports: from .context import yfinance
  from .context import session_gbl
  import unittest
  import os
  import datetime
  import pytz
  import numpy
  import pandas
label_desc: Use image node_id 17 for calling the TestPriceHistory obj's underlying member method code with example usage: obj.test_monthlyWithEvents2() without return types