class_docstr: A class for handling connections and interactions with the Google Calendar API.
docstr: Create an event in the calendar.
  Args:
      params (dict): query parameters
  Returns:
      DataFrame
docstr_tok: ["Create","an","event","in","the","calendar",".","Args",":","params","(","dict",")",":","query","parameters","Returns",":","DataFrame"]
code: def create_event(self, params: dict = None) -> pd.DataFrame:
      """
      Create an event in the calendar.
      Args:
          params (dict): query parameters
      Returns:
          DataFrame
      """
      service = self.connect()
      # Check if 'attendees' is a string and split it into a list
      if isinstance(params["attendees"], str):
          params["attendees"] = params["attendees"].split(",")
  
      event = {
          "summary": params["summary"],
          "location": params["location"],
          "description": params["description"],
          "start": {
              "dateTime": params["start"]["dateTime"],
              "timeZone": params["start"]["timeZone"],
          },
          "end": {
              "dateTime": params["end"]["dateTime"],
              "timeZone": params["end"]["timeZone"],
          },
          "recurrence": ["RRULE:FREQ=DAILY;COUNT=1"],
          "attendees": [
              {"email": attendee["email"]}
              for attendee in (
                  params["attendees"]
                  if isinstance(params["attendees"], list)
                  else [params["attendees"]]
              )
          ],
          "reminders": {
              "useDefault": False,
              "overrides": [
                  {"method": "email", "minutes": 24 * 60},
                  {"method": "popup", "minutes": 10},
              ],
          },
      }
  
      event = (
          service.events()
          .insert(calendarId="primary", body=event)
          .execute()
      )
      return pd.DataFrame([event], columns=self.events.get_columns())
  
imports: import os
  from collections import OrderedDict
  import pandas
  from google.auth.transport.requests import Request
  from google.oauth2.credentials import Credentials
  from googleapiclient.discovery import build
  from mindsdb.api.executor.data_types.response_type import RESPONSE_TYPE
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.api_handler import APIHandler, FuncParser
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse
  from mindsdb.utilities import log
  from mindsdb.integrations.handlers.gmail_handler.utils import AuthException, google_auth_flow, save_creds_to_file
  from .google_calendar_tables import GoogleCalendarEventsTable
label_desc: Use image node_id 6 for calling the GoogleCalendarHandler obj's underlying member method code with example usage: obj.create_event(params) and returns: pd