-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Changed uin8 to uint8 in response to issue #9266 #9350
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
Closed
Closed
Changes from 3 commits
Commits
Show all changes
239 commits
Select commit
Hold shift + click to select a range
8ece8cf
Changed uin8 to uint8 in response to issue #9266
CoolRanch29 d550e64
Added test for GH 9266
CoolRanch29 e7d90fe
Trying again with new testing function
CoolRanch29 5ea14a5
Modified the test_to_nd_array test to make it clearer what was being …
CoolRanch29 650e398
Added documentation for bug fix on issue #9266
CoolRanch29 5779cbd
Rebased
CoolRanch29 d31428a
Fix zlib and blosc imports
invisibleroads b49d6fd
Add missing keys and tests
invisibleroads 7e8d6dd
Make test_plain actually plain
invisibleroads 6ce2447
Add blosc to .travis.yml
invisibleroads 6aab111
Add blosc to requirements
invisibleroads 9214a00
Diagnose why blosc is not importing
invisibleroads 660a675
Get travis to cooperate
invisibleroads f811a1a
Make travis listen
invisibleroads adc2444
Respond to comments from jreback
invisibleroads bf64ed9
Restore spacing
invisibleroads b0b1c26
BUG: DataFrame.equals should not care about block order (GH #9330)
dsm054 7375ec4
BUG: Fix for #9764
tomazberisa 2296520
TST: Test for #9764 fix
tomazberisa 00907a9
TST: Test saves and restore context (#9764)
tomazberisa 59ea8cc
CLN: Test code cleanup (#9764)
tomazberisa d5be105
DOC: Update whatsnew for 0.16.1 (#9764)
tomazberisa 22f62c7
DOC: add dev environment creation details to contributing.rst
jreback 96adf2c
Fixed bug #9671 where 'DataFrame.plot()' raised an error when both 'c…
307fe73
DOC: correction to contributing.rst
jreback 3433758
DOC: fix some various doc warnings
jorisvandenbossche 1678e64
Closes #9795 (Stata writer changes input frame)
kshedden 954a68e
DOC: Clean up documentation for convert_objects
evanpw d488093
API: Sort keys for DataFrame.assign
TomAugspurger 604410b
BUG: Preserve tz of start_date in Holiday.dates
ssanderson 8014c24
ENH: drop function now has errors keyword for non-existing column han…
sinhrks 4ef0e34
BUG: skiprows doesn't handle blank lines properly when engine='c' (GH…
evanpw 94fec1e
BUG: Issue 9798 fixed
b92c341
DOC: Fix release note for v0.16
sinhrks 669cb13
TST: Fix tests in TestGoogle
d6a4ee6
ENH: Allow conversion of datetime64 and timedelta64 to string in asty…
evanpw 64a9ef3
Add tests with time zones, and clean up DataFrame test
evanpw b806190
ENH: add StringMethods (.str accessor) to Index, fixes #9068
mortada 44861eb
BUG: plot(kind=hist) results in TypeError for non-numeric data
sinhrks 67ac08a
Fix to allow sparse dataframes to have nan column labels
8d495e5
Fix: unequal comparisons of categorical and scalar
jankatins abfdeda
DOC: add more examples to StringMethods on Index
mortada a835b5a
memory access bug in read_csv causing segfault
behzadnouri c2f61e0
BUG: raw_locales unreachable in util.testing.get_locales
davidastephens ad3549d
BUG/CLN: Repeated time-series plot may raise TypeError
sinhrks 52875a1
DOC: add note about hosted dev docs
jreback 9351ee6
DOC/CLN: fixed several typos in categorical.rst
mortada 3582b1c
DOC/CLN: fixed bloolean indexing example, cleaned up typos
mortada db8b1a0
ENH: Allow get_dummies to return sparse dataframe
5ed4801
wip
jreback 7ecc49a
BUG: Fix for comparisons of categorical and an scalar not in categori…
jankatins f893ac5
GH9570 allow timedelta string conversion without leading zero
chrisgilmerproj edf8022
Fix blosc compressor test
cpcloud f33f3f5
BUG: Fix error when reading postgres table with timezone #7139
danbirken 8f92962
BUG: unstack on unicode name level breaks GH9856
scari 9b38f13
added the fix for index name lost #9862 and also added the correspond…
ksanghai 99742c7
Groupby transform preserves output dtype
jcrist 4a091fa
FIX: division of Decimal would crash on fill because Decimal does not…
hsperr 96f3fcd
BUG: Fixing == __eq__ operator for MultiIndex ... closes (GH9785)
pykler 75cfaf7
FIX: timeseries asfreq would drop the name of the index, closes #9854
hsperr bbacedd
Fix 32 syntax u error
cpcloud 57b401e
Whitespace
cpcloud 788facc
Fix rhs dict assignment
cpcloud 3ff19c3
What's new and doc
cpcloud 3a9e4ff
FIX: Describe NotImplementedErrors or use AbstractMethodError
hoh 11ed4c5
BUG: secondary ax has incorrect right_ax property
sinhrks 7406dc3
BUG: where behaves badly when dtype of self is datetime or timedelta,…
evanpw 9e9759e
BUG: Fix for cython version checking #9827; adding appropriate travis
ajamian 68e4245
move blosc import to install_conda.sh script
jreback f2e2e32
Period accepts datetime64 value
jcrist f65fad4
Add tests for more units
cpcloud 881479a
Moved caching in `AbstractHolidayCalendar` to the instance level
6d111aa
ENH: allow Panel.shift on items axis
mortada 61d28bc
Fix of the docs for tz_conver and tz_localize
c9baf05
BUG: Fixed latex output for multi-indexed dataframes - GH9778
yred 94c53cd
BUG: barplot with log=True not working for values smaller than 1
sinhrks 11b2f36
removed conditional
nburns ee0533c
ENH: Raise error on trying to write excel file with a MultiIndexed Da…
hsperr a66c4ba
ENH: Add option in read_csv to infer compression type from filename
evanpw 49e5800
BUG: Exception when setting an empty range using DataFrame.loc
evanpw 4dab4f2
API: define _constructor_expanddim for subclassing Series and DataFrame
sinhrks e3b6606
Update README.md
fed024a
DOC: Link to recipe for SafeHDF5Store
toobaz 01a5958
BUILD: add bz2, gz to setup.py, xref GH9770
jreback 7c25be6
TST: skip testing locales on win32, xref GH9845
jreback da3a67e
TST: dtype on comparison for test_panel_to_expanddim
jreback 8949c0d
dtype fix for GH9804 on win32
jreback 27bf8cf
DOC: fix incorrect issue numbers in whatsnew
jreback dcba08d
BUG: GroupBy.size doesnt attach index name properly if grouped by Tim…
sinhrks 7f1f998
PERF: improve perf of writing csv's with datetimes
jreback d7be337
perf improvements for other native type writers
jreback ea1dc5e
support CategoricalIndex
jreback fe16371
DOC: fixup whatsnew for rebase issue
jreback ee37abd
Spelling typo
ptype 2971ef8
BUG: hidden ticklabels with sharex and secondary
TomAugspurger 586fa41
add/delete str/dt/cat dynamically from __dir__ (fix for #9627)
mortada 844793c
Allow add_categories() to accept Series/np.array
mortada 7340826
TST: adding sdist and install tests to the 2.6 regression - closes #9878
ajamian baa3f54
DOC: Release note link and format correction
sinhrks d1355dd
DOC: StringMethods html doc fixes
mortada aee79bc
DOC: add redirects to ensure old links instead of building the docstr…
jorisvandenbossche dd76614
DOC/CLN: HTML docs fixes
mortada 527fdbc
BUGFIX: length_of_indexer() can return incorrect values that break sl…
slonik-az 067adcf
Add bugfix note to whatsnew in v0.16.1 release.
slonik-az 5a39e85
fix issue #9680
JonasAbernot b0c6059
BUG: read_csv skips lines with initial whitespace + one non-space cha…
evanpw d8e4347
Fixes groupby.apply() error when no returns #9684
4d561e8
TST: Check index names
sinhrks ddc1512
ENH: Allow clip, clip_lower, and clip_upper to use array-like thresho…
48ed40e
Applying max_colwidth to the DataFrame index (#7856)
tiagoantao 87cc46a
DOC: Fix broken formatting on docstring examples with first-line comm…
evanpw e7d0b14
DOC: highlite to contributing.rst
jreback 0d25b3b
BUG: DataFrame constructor fails when columns is set and data=[] (GH9…
evanpw 1589636
Docs: add reference to pandaSDMX to the ecosystem
dr-leo 208aba5
kwarg for Categorical.fillna should be value instead of fill_value
mortada a0953f9
CLN: remove an unnecessary warning from test_index.py
mortada 043af58
BUG: transform and filter misbehave when grouping on categorical data…
evanpw 61df628
ENH: Add an axis parameter to DataFrame.diff
evanpw efaa4dc
DOC: improve fillna() doc for limit keyword (fixes #10002)
mortada 28b7cb3
BUG: null group spills into final group when grouping on a categorical
evanpw de30f62
Fix missing index name in test
483d994
BUG: Make .iloc and .loc indexing consistent on empty dataframes
8bdc531
Network-ize a test
cpcloud 22b00ca
Use explicit len dispatch to avoid overhead
cpcloud 9be124d
Improve perf
cpcloud ac622b3
Use a fused type
cpcloud 3b5f8cd
Ensure object on stata
cpcloud 759d564
Test that we do not accept unicode
cpcloud 8bd7fc5
Use proper types so that we work with python3
cpcloud 9c048a4
Better name for fused type
cpcloud 53abf75
DOC: added fredapi module to ecosystem list
mortada c40f927
ENH: Add sample function with tests and docs (GH2419)
nickeubank 49cf90a
COMPAT: windows test dtype adjustments
jreback ff727a3
Updates to Google BigQuery connector (#9713, #8327)
78b2b62
DOC/CLN: Revise StringMethods docs
sinhrks cf0b4c3
DOC: provide more links to API documentation where possible (GH3705)
jorisvandenbossche b2efd61
Fix TimedeltaIndex constructor fastpath when name is set
shoyer 4eb4df9
DOC: mention other packages in IO docs (for now, just xray for netCDF)
shoyer 0b29e62
disallow numeric setlike operations on CategoricalIndex (GH10039)
jreback cd7a5c3
BUG: provide deprecation warnings when using setlike operations on In…
jreback 9022f6c
Return correct subclass when slicing DataFrame.
8524236
BUG: Resample BM/BQ adds extra index point #9756
scari 28b72e3
cleanup test for GH10044
jreback bb4a94a
DOC: use _shared_docs for fillna methods
mortada 9ddc460
improve error message when importing pandas from source directory
mortada 378a58e
DOC: clean up / consistent imports (GH9886)
jorisvandenbossche cc51f3d
DOC: infer_freq, inferred_freq
jnmclarty ffa2a50
BUG: Bug in grouping with multiple pd.Grouper where one is non-time b…
jreback de28406
ENH Add normalize method to Series dt accessor.
hayd a6e3a89
doc edits for GH10047
jreback 1e7dda6
DOC: add warning for datareader changes in 0.17.0 (GH10004)
jreback 2c7a729
ENH: Add BusinessHour offset
sinhrks 608f770
DOC: remove use of deprecated index set operation (follow-up GH10042)
jorisvandenbossche 8887746
ENH: Added str.normalize to use unicodedata.normalize
sinhrks c544d75
DOC: fix in v0.16.1
jreback e7ad3da
DOC/CI: add blosc to optional deps list (msgpack compression)
jreback 2f2d209
DOC/CLN: fixed typos in timeseries.rst
mortada e69e1be
DOC: Note on PyTables index issue and additional Contributing refinem…
rockg 5391256
ENH: Add StringMethods.partition and rpartition
sinhrks 5b59095
Corrected typo in Grammar of Graphics
FvD 5bcc14d
TST: dtype comparison issue on windows for test_resample_index_points
jreback 0d91fab
BUG: median() not correctly handling non-float null values (fixes #10…
mortada 71c417a
DOC: Fix v0.16.1 release note
sinhrks ca65274
FIX make take_nd support readonly array
ogrisel 00cd0de
BUG: use memory view for indexer in take_2d / tests (GH10043)
jreback 4bed7c9
ENH: improve extract and get_dummies methods for Index.str (fix for #…
mortada fcf0a06
Changed a condition in tokenize_delimited to account for data chunks …
jblackburne fb201fd
DOC: Revise merging.rst with graphical examples
sinhrks f0a77bb
BUG: Use temp files in all pytables tests to fix (GH9992).
31e8c67
ENH: support __radd__ operation on Index (GH10083)
mortada ad4fedb
DOC: additional whatsnew
jreback bb226bb
TST: using - rather than difference in tools/plotting.py
jreback 5dd50c3
DOC/CLN: docs fixes for Series.shift and DataFrame.shift
mortada fd69d33
pd.lib.infer_dtype now returns bytes in python 3 when appropriate
cpcloud 5cb5141
Release note [ci skip]
cpcloud 4154bd3
ENH: support StringMethods index and rindex
mortada 4fd5674
ENH: support str translate for StringMethods
mortada ed60c7d
fix the inconsistency between code and description
floydwch 4817ae7
DEPR: Deprecate str.split return_type #9847
sinhrks eafac77
DOC: prepare for 0.16.1 release
jreback 9cb23b6
DOC: add v0.17.0.txt whatsnew (not in index yet though)
jreback 2906314
DOC: add docstring for PeriodIndex.asfreq
TomAugspurger c8855ef
ENH: repr now shows index name #6482
hsperr df22a23
formatting MultiIndex
jreback 82cb33b
fixup for CategoricalIndex merge
jreback c8bf8e0
Change Index repr to adjust to string length
jorisvandenbossche db3ab7f
Index repr: allow unequal number of elements on one line
jorisvandenbossche 9b0345f
more fixups
jreback 547f8d3
DOC: missed merge in v0.16.1 whatsnew
jreback 204e6e4
BUG: Series.fillna() raises if given a numerically convertible string
mortada 12ba4b4
RLS: v0.16.1 final
jreback 32c3dce
initial commit for v0.17.0
jreback cc6f41f
DOC/DEPR: port pandas.rpy to rpy2 guide (GH9602)
jorisvandenbossche cf22dcc
DOC/DEPR: add link to docs in deprecation warning
jorisvandenbossche 10308bd
DOC: fix api documentation for accessors
jorisvandenbossche 21cf5cc
DOC: add v0.17.0 whatsnew to index
jreback 05693f9
BUG: categorical doesn't handle display.width of None in Python 3 (GH…
rosnfeld 927c680
ENH: Series.resample performance with datetime64[ns] #7754
scari cf6acd4
BUG: Timestamp properties may return np.int
sinhrks 21e0957
CLN: cleanup hashtable.pyx
gdementen 2b3844c
CLN: clean up unused imports
mortada 1bfc3bf
DOC: update docs regarding to return_type/expand (due to GH10085)
jorisvandenbossche e7d93cd
DOC: fix some doc build errors
jorisvandenbossche 98da29b
DOC: update section on CategoricalIndex in categorical docs
jorisvandenbossche 6569742
DOC: last clean-up of whatsnew file 0.16.1
jorisvandenbossche 9672bd4
DOC: remove mention of TimeSeries in docs
jorisvandenbossche 6dd2b83
CLN: clean up unused imports part II
mortada 2d581dd
ENH: Use datetutil.tz.gettz() instead of dateutil.zoneinfo.gettz()
jlec 3c66b4a
DOC: fixup whatsnew
jreback e1565bf
TST: windows tests for allow for int/long #10050
jreback cf68353
DOC: improve binary operator docs (fixes #10093)
mortada a963abd
TST: use compat.long in test_tslib for py3
sinhrks 605dc5a
BUG: Panel.from_dict does not set dtype when specified
mortada 1563c1b
BUG: Index.name is lost during timedelta ops
sinhrks 46181f5
DOC: Reorder arguments in shared fillna docstring
ElDeveloper d4b1165
DOC: fix blosc display in install.rst
jreback fdf595d
BUG: fix Series.plot label setting
TomAugspurger 82a0d5c
DOC: consistent imports (GH9886) part II
jorisvandenbossche c38f51b
BUG: consistent datetime display format with < ms #10170
jreback bddc128
DOC/CLN: period_range kwarg descriptions missing and other minor doc …
mortada 3f22322
DOC: Add Index.difference to API
sinhrks 05fce82
DOC: minor doc fix for Series.append; indices can overlap
jakevdp b3f77fb
DOC: Updated to mention axis='index' and axis='columns
robintw cfae991
BUG: closes issue #7212 - side effect on passed columns list
ajamian 0ffd458
DOC: Added nlargest/nsmallest to API docs
robintw e450e6d
Update bq link
mortonfox db1c8c5
BUG: plot doesnt default to matplotlib axes.grid setting (#9792)
f6dc839
Close mysql connection in TestXMySQL to prevent tests freezing
0c22676
BUG: GroupBy.get_group raises ValueError when group key contains NaT
sinhrks 3cfd3e0
BUG: Series.align resets name when fill_value is specified
sinhrks 5cd5133
BUG: mean overflows for integer dtypes (fixes #10155)
mortada a2ba3af
ENH: Don't infer WOM-5MON if we don't support it (#9425)
f30a851
BUG: Holiday(..) with both offset and observance raises NotImplement…
bwillers 6da6f56
BUG: Index.union cannot handle array-likes
sinhrks 3b2ca49
BUG: Series arithmetic methods incorrectly hold name
sinhrks 726aff5
BUG: SparseSeries.abs() resets name
sinhrks 1af1d34
DOC: move whatsnew from 0.17.0 -> 0.16.2
jreback d19facc
DOC: add in whatsnew/0.17.0.txt
jreback ce55b8b
Moved bug fix to v0.17.0.txt
CoolRanch29 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2984,6 +2984,28 @@ def test_variable_width_unicode(self): | |
tm.assert_frame_equal(expected, read_fwf(BytesIO(test.encode('utf8')), | ||
header=None, encoding='utf8')) | ||
|
||
def test_convert_to_nd_arrays(self): | ||
#GH 9266 | ||
with open('test.txt','w') as f: | ||
f.write( | ||
"""1421302964.213420 PRI=3 PGN=0xef00 DST=0x17 SRC=0x28 04 154 00 00 00 00 00 127 \n""" | ||
+ """1421302964.226776 PRI=6 PGN=0xf002 SRC=0x47 243 00 00 255 247 00 00 71""" | ||
) | ||
try: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do
(I for whichever columns should be that dtype) |
||
pd.read_fwf('test.txt', colspecs=[(0,17),(25,26),(33,37),(49,51),(58,62),(63,1000)], | ||
names=['time','pri','pgn','dst','src','data'], | ||
converters={'pgn':lambda x: int(x,16), | ||
'src':lambda x: int(x,16), | ||
'dst':lambda x: int(x,16), | ||
'data':lambda x: len(x.split(' '))}, | ||
index_col='time') | ||
except AttributeError: | ||
self.assertIn('Error with read_fwf function.') | ||
|
||
|
||
|
||
|
||
|
||
|
||
class TestCParserHighMemory(ParserTests, tm.TestCase): | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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