def create_pie_chart(word_count_1, word_count_2, name_1='Tweet', 
                     name_2='Replies', n=10):
    """
        This method will create two pie charts displaying word frequencies.

        Args:
            word_count_1 (pandas.DataFrame): word count of top tweets
            word_count_2 (pandas.DataFrame): word count of replies

        Returns:
            figure dict object formatted for plotly
    """
    # --- Create Pie Chart with top n terms --- 
    fig = {
      "data": [
        {
          "values": word_count_1['count'].values[:n],
          "labels": word_count_1['word'].values[:n],
          "domain": {"column": 0},
          "hole": .4,
          "type": "pie",
          "name": name_1
        },
        {
          "values": word_count_2['count'].values[:n],
          "labels": word_count_2['word'].values[:n],
          "domain": {"column": 1},
          "hole": .4,
          "type": "pie",
          "name": name_2
        }],
      "layout": {
            "title":"Word Frequency",
            "grid": {"rows": 1, "columns": 2},
            "annotations": [
                {
                    "font": {
                        "size": 20
                    },
                    "showarrow": False,
                    "text": name_1,
                    "x": 0.20,
                    "y": 0.5
                },
                {
                    "font": {
                        "size": 20
                    },
                    "showarrow": False,
                    "text": name_2,
                    "x": 0.8,
                    "y": 0.5
                }
            ]
        }
    }

    return fig