-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Apply min_itemsize to index even when not appending #14812
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
Conversation
@@ -1372,6 +1372,22 @@ def check_col(key, name, size): | |||
min_itemsize={'index': 4}) | |||
tm.assert_series_equal(store.select('ss2'), df['B']) | |||
|
|||
# min_itemsize in index of DataFrame.to_hdf() (GH 10381) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the existing patter.
don't use store.filename
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, replaced with store.put()
or .append()
.
e5a421e
to
cc138d9
Compare
can you add a replica of @TomAugspurger example as well (you can make a new test function is fine). Just to cover the bases. |
otherwise lgtm. |
cc138d9
to
fffee0f
Compare
Current coverage is 85.26% (diff: 100%)@@ master #14812 diff @@
==========================================
Files 144 144
Lines 50981 50980 -1
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 43470 43469 -1
Misses 7511 7511
Partials 0 0
|
fffee0f
to
29a4000
Compare
Appveyor is stuck again |
rebase again, problem with appeveyor which i just fixed |
29a4000
to
c07f1e4
Compare
closes #10381 Author: Pietro Battiston <[email protected]> Closes #14812 from toobaz/to_hdf_min_itemsize and squashes the following commits: c07f1e4 [Pietro Battiston] Whatsnew 38b8fcc [Pietro Battiston] Tests for previous commit c838afa [Pietro Battiston] BUG: set min_itemsize even when there is no need to validate (#10381) (cherry picked from commit e833096)
closes pandas-dev#10381 Author: Pietro Battiston <[email protected]> Closes pandas-dev#14812 from toobaz/to_hdf_min_itemsize and squashes the following commits: c07f1e4 [Pietro Battiston] Whatsnew 38b8fcc [Pietro Battiston] Tests for previous commit c838afa [Pietro Battiston] BUG: set min_itemsize even when there is no need to validate (pandas-dev#10381)
git diff upstream/master | flake8 --diff