code: def test_and_df():
      """
      Test AndAggregator with input as a DataFrame
      """
      df = pd.DataFrame(
          [
              [1, 1],
              [1, 0],
              [0, 1],
              [0, 0],
              [float("nan"), 1],
              [0, float("nan")],
          ],
          index=pd.date_range(start="2017-1-1", periods=6, freq="D"),
      )
      pd.testing.assert_series_equal(
          aggt.AndAggregator().aggregate(df),
          pd.Series(
              [1, 0, 0, 0, float("nan"), 0],
              index=pd.date_range(
                  start="2017-1-1", periods=6, freq="D"
              ),
          ),
      )
  
file_path: adtk/tests/test_aggregators.py
imports: import pandas
  from pandas import Timestamp
  import adtk.aggregator
label_desc: Use image node_id 5 for calling a global function with example usage: test_and_df() without return types