{"meta":{"title":"Generating tables","intro":"Copilot Chat can help you create tables to organize information and present it clearly.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/copilot","title":"GitHub Copilot"},{"href":"/en/copilot/tutorials","title":"Tutorials"},{"href":"/en/copilot/tutorials/copilot-chat-cookbook","title":"GitHub Copilot Chat Cookbook"},{"href":"/en/copilot/tutorials/copilot-chat-cookbook/communicate-effectively","title":"Communicate effectively"},{"href":"/en/copilot/tutorials/copilot-chat-cookbook/communicate-effectively/generating-tables","title":"Generate tables"}],"documentType":"article"},"body":"# Generating tables\n\nCopilot Chat can help you create tables to organize information and present it clearly.\n\nGitHub Copilot Chat can help you create tables for various purposes, such as organizing data, comparing options, or summarizing information. By using tables, you can present information in a clear and structured way that is easy to read and understand. You can ask Copilot Chat to generate tables based on existing data or to create empty tables based on your specific requirements.\n\n## Example scenario\n\nYou want to create a reference table for the people on your team, including their roles and availability. You can ask Copilot Chat to generate a table that summarizes this information in a clear and organized way.\n\n## Example prompt 1\n\n```text copy\nConvert the following information into a markdown table:\n\nName: Alice  \nAge: 30  \nOccupation: Engineer\nTimezone: PST\nAvailability: Mon-Fri, 9am-5pm\n\nName: Bob  \nAge: 25  \nOccupation: Designer\nTimezone: EST\nAvailability: Mon-Thu, 10am-6pm\n\nName: Carol  \nAge: 27  \nOccupation: Writer\nTimezone: CST\nAvailability: Mon-Thu, 8am-4pm\n\nName: Dave\nAge: 35\nOccupation: Manager\nTimezone: PST\nAvailability: Mon-Fri, 10am-6pm\n\nName: Eve\nAge: 28\nOccupation: Analyst\nTimezone: CST\nAvailability: Mon-Fri, 9am-5pm\n\nName: Frank\nAge: 32\nOccupation: Developer\nTimezone: CST\nAvailability: Mon-Thu, 11am-7pm\n\nName: Grace\nAge: 29\nOccupation: Researcher\nTimezone: EST\nAvailability: Mon-Fri, 9am-5pm\n\nName: Heidi\nAge: 31\nOccupation: Consultant\nTimezone: PST\nAvailability: Mon-Fri, 9am-5pm\n\nName: Ivan\nAge: 26\nOccupation: Intern\nTimezone: CST\nAvailability: Mon-Thu, 10am-6pm\n```\n\n## Example response 1\n\n> \\[!NOTE] The following response is an example. Copilot Chat responses are non-deterministic, so you may get a different response from the one shown here.\n\nCopilot will provide you with a markdown table that organizes the information clearly. You can copy the table Copilot Chat provides and use it in your documentation or project.\n\n```markdown\n| Name   | Age | Occupation   | Timezone | Availability          |\n|--------|-----|-------------|----------|-----------------------|\n| Alice  | 30  | Engineer    | PST      | Mon-Fri, 9am-5pm      |\n| Bob    | 25  | Designer    | EST      | Mon-Thu, 10am-6pm     |\n| Carol  | 27  | Writer      | CST      | Mon-Thu, 8am-4pm      |\n| Dave   | 35  | Manager     | PST      | Mon-Fri, 10am-6pm     |\n| Eve    | 28  | Analyst     | CST      | Mon-Fri, 9am-5pm      |\n| Frank  | 32  | Developer   | CST      | Mon-Thu, 11am-7pm     |\n| Grace  | 29  | Researcher  | EST      | Mon-Fri, 9am-5pm      |\n| Heidi  | 31  | Consultant  | PST      | Mon-Fri, 9am-5pm      |\n| Ivan   | 26  | Intern      | CST      | Mon-Thu, 10am-6pm     |\n```\n\n## Next steps\n\nYou can experiment with different types of visualizations and data to see how Copilot Chat can help you create organized and easy-to-read information. For example, you could ask Copilot Chat to use the `Timezone` and `Availability` columns to create a Mermaid graph that shows overlapping working hours for team members in different time zones. See [Creating diagrams](/en/copilot/tutorials/copilot-chat-cookbook/communicate-effectively/creating-diagrams) for more information.\n\n## Further reading\n\n* [Prompt engineering for GitHub Copilot Chat](/en/copilot/using-github-copilot/prompt-engineering-for-github-copilot)\n* [Best practices for using GitHub Copilot](/en/copilot/using-github-copilot/best-practices-for-using-github-copilot)"}