Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBUG: Can't disable progress bar for read_gbq #33360
Comments
Thanks for the report. Looks like we need to just always set it at Lines 171 to 172 in 6ae710a We'll need to verify that the minimum supported version of gbq will always accept it. Seems like it requires 0.12.0 or newer. |
You could also set the default to something like EDIT: I guess if you want to keep the (sensible) default of no progressbar then that wouldn't work |
I'm not sure why we have a different default, perhaps a version issue. Ideally we would just follow pandas-gbq (cc @tswast) |
Yes, it was left out due to version issues. Options:
By following (2), the default value in pandas-gbq will be used. By following (1), pandas can set a different default value from pandas-gbq. |
take |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
(Due to the BigQuery dependency it's not copy-pastable)
Warning message displayed or tqdm is used:
That is because if
progress_bar_type
is set toNone
it is not passed topandas_gbq.read_gbq
(see #29858 (comment)). But the default forpandas_gbq.read_gbq
istqdm
.Problem description
It should be possible to disable the progress bar.
Expected Output
No progress bar.
Output of
pd.show_versions()
pandas : 1.0.3
numpy : 1.18.2
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 39.0.1
Cython : None
pytest : 4.6.9
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : 0.13.1
pyarrow : None
pytables : None
pytest : 4.6.9
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None