# Big-Query-Magic
#### The package has been created for Mac OS
#### Requirements
It is assumed that you have basic packages like pandas installed
Install Auth2client and pandas_gbq
Ensure that you can query data using pandas gbq
<hr>
This packacge installs a magic in your startup directory which makes querying in jupyter environment more user friendly and easier to use.Post intallation simply type %%BQSQL and write your query
example
```python
%%BQSQL
SELECT *
FROM table
LIMIT 10;
```
<b>There are other features also present which makes it even more user friendly which can be explained with help of the argument this magic can take</b>
-job [Y or None] If Y is passed as job argument this will run just the query but will not pull the out put, this is useful when one is creating a large temp table during the workflow and does not want to download and load it in python, the existing pandas_gbq does not offer that
-save_to [Table Name] Pass a variable in which the output needs to be store
Note Do not pass both the arguments at the same time
-para [Y or None] If Y is passed the query will look if parameters or python variables are used in the query. Yes this is one of the best features of this magic you can use python variables directly in your query
example
```python
x = ['user1','user2']
%%BQSQL -para Y -job Y
SELECT *
FROM table
WHERE user_id IN @x
```
Currently string int and list of these two can be passed as a parameter. Note parameter needs to be preceeded by <b><u>@</u></b> in case one was planning to use @ just as character in that case please avaoid using parameter
没有合适的资源?快使用搜索试试~ 我知道了~
pandas_gbq_magic-1.1.0.tar.gz
需积分: 1 0 下载量 24 浏览量
2024-03-14
16:32:05
上传
评论
收藏 3KB GZ 举报
温馨提示
Python库是一组预先编写的代码模块,旨在帮助开发者实现特定的编程任务,无需从零开始编写代码。这些库可以包括各种功能,如数学运算、文件操作、数据分析和网络编程等。Python社区提供了大量的第三方库,如NumPy、Pandas和Requests,极大地丰富了Python的应用领域,从数据科学到Web开发。Python库的丰富性是Python成为最受欢迎的编程语言之一的关键原因之一。这些库不仅为初学者提供了快速入门的途径,而且为经验丰富的开发者提供了强大的工具,以高效率、高质量地完成复杂任务。例如,Matplotlib和Seaborn库在数据可视化领域内非常受欢迎,它们提供了广泛的工具和技术,可以创建高度定制化的图表和图形,帮助数据科学家和分析师在数据探索和结果展示中更有效地传达信息。
资源推荐
资源详情
资源评论
收起资源包目录
pandas_gbq_magic-1.1.0.tar.gz (9个子文件)
pandas_gbq_magic-1.1.0
setup.py 971B
LICENSE.txt 1KB
PKG-INFO 2KB
pandas_gbq_magic.egg-info
SOURCES.txt 190B
top_level.txt 1B
PKG-INFO 2KB
dependency_links.txt 1B
setup.cfg 42B
README.md 2KB
共 9 条
- 1
资源评论
程序员Chino的日记
- 粉丝: 3686
- 资源: 5万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功