-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
why resample with group by not pad null value #13151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think this is fixed in 0.18.1:
Are you able to check that? |
Probably fixed by #12743 |
You are right, my pandas version is 0.18.0. I upgrade my pandas and the problem is solved. Thanks. ------------------ Original ------------------ I think this is fixed in 0.18.1: — |
Thanks for checking! |
Code Sample, a copy-pastable example if possible
I use resample with group by method to run following code:
program output like following:
but I want the output could pad the missing data with 0 like this:
If I don't use groupby method, resample can pad missing data with 0, like this:
I don't know why the behavior of using resample alone is different with resample with group by.
output of
pd.show_versions()
NSTALLED VERSIONS
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: zh_CN.UTF-8
pandas: 0.18.0
nose: None
pip: 8.1.1
setuptools: 19.4
Cython: None
numpy: 1.11.0
scipy: None
statsmodels: None
xarray: None
IPython: 4.2.0
sphinx: 1.3.5
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
The text was updated successfully, but these errors were encountered: