Bard与GeminiPro在 Arena上超越了 GPT-4





将其与 Google Sheets 结合起来,实现数据处理的自动化。

以下向您展示如何使用 Bard 来管理没有公式的电子表格:

## 1. 给数据截图

给数据表截图。确保在截图上保留列和行的名称。

注意

不需要截取整个表格。目的是显示数据的结构。

## 2. 在 Bard 中提示

打开 Bard (bard .google .com) 并粘贴截图。

然后使用这个提示模板来执行你感兴趣的任务:

"Act as a data analyst expert in writing macros for Google Sheets.

I have the following data format (see image) in a Google Sheets document. Write a JS macro for my Google Sheets document to [GOAL].

Think step by step to make sure the macro code will work."

目标示例:

"sort athletes by height (Ht) and create a scatter chart with height and weight data for each athlete"

## 3.导入你的宏

从 Bard 复制代码并返回到您的表格:

- 在“扩展”中,单击“Apps 脚本”

- 将现有代码替换为您自己的代码并保存

- 返回扩展、宏、导入宏

- 点击“添加功能”

您可能需要授予App Script权限,这是正常的。

## 4. 运行宏

现在您所要做的就是转到宏并运行它。

- 转到宏菜单

- 单击您刚刚导入的那个

Google 表格将负责为您处理数据!

如果您在这个阶段犯了错误,请不要惊慌:

只需将代码复制并粘贴到与 Bard 要求更正的对话中即可。


就在几周前,这种工作流程在 Bard 上还是不可能实现的。Gemini Pro 及其最近的优化改变了一切!

原作者@itsPaulAi

X原帖文:

https://x.com/itsPaulAi/status/1673688469288230919?s=20

视频:https://youtu.be/s-1x4t0tnuI

留言