def search_twitter_user(target_user: str, number_of_tweets: int) -> str:
    """Searches a user's tweets given a number of items to retrive and
      returns a dataframe.

    Args:
        target_user (str): The user to search.
        num_of_items (int): The number of items to retrieve.
        api (tweepy.API): The tweepy API object.

    Returns:
        str: The dataframe containing the tweets.
    """

    tweets = tweepy.Cursor(
        plugin.api.user_timeline, screen_name=target_user, tweet_mode="extended"
    ).items(number_of_tweets)

    columns = ["Time", "User", "ID", "Tweet"]
    data = []

    for tweet in tweets:
        data.append(
            [tweet.created_at, tweet.user.screen_name, tweet.id, tweet.full_text]
        )

    df = str(pd.DataFrame(data, columns=columns))

    print(df)

    return df  # Prints a dataframe object containing the Time, User, ID, and Tweet
Searches a user's tweets given a number of items to retrive and
      returns a dataframe.

    Args:
        target_user (str): The user to search.
        num_of_items (int): The number of items to retrieve.
        api (tweepy.API): The tweepy API object.

    Returns:
        str: The dataframe containing the tweets.
    
src/autogpt_plugins/twitter/twitter.py