diff --git a/pandas_market_calendars/calendar_utils.py b/pandas_market_calendars/calendar_utils.py
index 55d1c3d..62f51eb 100644
--- a/pandas_market_calendars/calendar_utils.py
+++ b/pandas_market_calendars/calendar_utils.py
@@ -57,9 +57,9 @@ def merge_schedules(schedules, how='outer'):
     :param how: outer or inner
     :return: schedule DataFrame
     """
-    
-    result = schedules.pop(0)
-    for schedule in schedules:
+
+    result = schedules[0]
+    for schedule in schedules[1:]:
         result = result.merge(schedule, how=how, right_index=True, left_index=True)
         if how == 'outer':
             result['market_open'] = result.apply(lambda x: min(x.market_open_x, x.market_open_y), axis=1)
@@ -69,24 +69,25 @@ def merge_schedules(schedules, how='outer'):
             result['market_close'] = result.apply(lambda x: min(x.market_close_x, x.market_close_y), axis=1)
         else:
             raise ValueError('how argument must be "inner" or "outer"')
-    return result[['market_open', 'market_close']]
+        result = result[['market_open', 'market_close']]
+    return result
 
 
 def date_range(schedule, frequency, closed='right', force_close=True, **kwargs):
     """
-    Given a schedule will return a DatetimeIndex will all of the valid datetime at the frequency given. 
+    Given a schedule will return a DatetimeIndex will all of the valid datetime at the frequency given.
     The schedule values are assumed to be in UTC.
 
     :param schedule: schedule DataFrame
     :param frequency: frequency in standard string
     :param closed: same meaning as pandas date_range. 'right' will exclude the first value and should be used when the
       results should only include the close for each bar.
-    :param force_close: if True then the close of the day will be included even if it does not fall on an even 
+    :param force_close: if True then the close of the day will be included even if it does not fall on an even
       frequency. If False then the market close for the day may not be included in the results
     :param kwargs: arguments that will be passed to the pandas date_time
     :return: DatetimeIndex
     """
-    
+
     kwargs['closed'] = closed
     ranges = list()
     for row in schedule.itertuples():

Issues with merge_schedules when list is larger than 2
Firstly thanks for the great project, it's very helpful. I am having issues with `merge_schedules` when the input list is greater than two. The issue seems to be that multiple calls to `pd.merge` happen causing repeated columns, e.g. `market_open_x`, which then fails when the `lambda` function is applied. Here is an illustrative example

```python
import pandas_market_calendars as mcal

start_date = "20170103"
end_date = "20170104"

cme = mcal.get_calendar("CME")
nyse = mcal.get_calendar("NYSE")
ice = mcal.get_calendar("ICE")

s1 = cme.schedule(start_date, end_date)
s2 = nyse.schedule(start_date, end_date)
s3 = ice.schedule(start_date, end_date)

schedules = [s1, s2, s3]

mcal.merge_schedules(schedules, how='inner')

ValueError: ('Can only compare identically-labeled Series objects', 'occurred at index 2017-01-03 00:00:00')
```

As described above, here is an illustration of the internal code causing the
issue

```python
how = "inner"
result = s1
result = result.merge(s2, how=how, right_index=True, left_index=True)
result['market_open'] = result.apply(lambda x: max(x.market_open_x, x.market_open_y), axis=1)
result['market_close'] = result.apply(lambda x: min(x.market_close_x, x.market_close_y), axis=1)
result = result.merge(s3, how=how, right_index=True, left_index=True)
print(result)
```
```
                       market_open_x            market_close_x  \
2017-01-03 2017-01-02 23:01:00+00:00 2017-01-03 23:00:00+00:00   
2017-01-04 2017-01-03 23:01:00+00:00 2017-01-04 23:00:00+00:00   

                       market_open_y            market_close_y  \
2017-01-03 2017-01-03 14:30:00+00:00 2017-01-03 21:00:00+00:00   
2017-01-04 2017-01-04 14:30:00+00:00 2017-01-04 21:00:00+00:00   

                       market_open_x            market_close_x  \
2017-01-03 2017-01-03 14:30:00+00:00 2017-01-03 21:00:00+00:00   
2017-01-04 2017-01-04 14:30:00+00:00 2017-01-04 21:00:00+00:00   

                       market_open_y            market_close_y  
2017-01-03 2017-01-03 01:01:00+00:00 2017-01-03 23:00:00+00:00  
2017-01-04 2017-01-04 01:01:00+00:00 2017-01-04 23:00:00+00:00 
```

In addition, the use of `pop` on the input list has the side effect of changing
the input, I believe this is an unintended side effect?
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 743f84e..05a4a98 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -200,5 +200,9 @@ def test_merge_schedules():
     actual = mcal.merge_schedules([sch1, sch2], how='inner')
     assert_frame_equal(actual, expected)
 
+    # joining more than two calendars works correctly
+    actual = mcal.merge_schedules([sch1, sch1, sch1], how='inner')
+    assert_frame_equal(actual, sch1)
+
     with pytest.raises(ValueError):
         mcal.merge_schedules([sch1, sch2], how='left')

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
execnet==1.9.0
importlib-metadata==4.8.3
iniconfig==1.1.1
numpy==1.19.5
packaging==21.3
pandas==1.1.5
-e git+https://github.com/rsheftel/pandas_market_calendars.git@72223f2615375c1ec321eb22abdaf9fda5bea1e5#egg=pandas_market_calendars
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
pytest-cov==4.0.0
pytest-xdist==3.0.2
python-dateutil==2.9.0.post0
pytz==2025.2
six==1.17.0
tomli==1.2.3
toolz==0.12.0
typing_extensions==4.1.1
zipp==3.6.0

name: pandas_market_calendars
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - coverage==6.2
      - execnet==1.9.0
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - numpy==1.19.5
      - packaging==21.3
      - pandas==1.1.5
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-cov==4.0.0
      - pytest-xdist==3.0.2
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - six==1.17.0
      - tomli==1.2.3
      - toolz==0.12.0
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/pandas_market_calendars

tests/test_utils.py::test_merge_schedules
tests/test_utils.py::test_get_calendar tests/test_utils.py::test_date_range_daily tests/test_utils.py::test_date_range_hour tests/test_utils.py::test_date_range_minute
pandas_market_calendars/calendar_utils.py
pandas_market_calendars/calendar_utils.py