Jacob Wasserman
1e0c2ed582
BUG/TST: Fix tests - don't do math on Index
...
Treat Index objects as set-like. Convert to Series before doing
arithmetic. This broke when Pandas Index no longer subclassed from
NDArray.
2014-08-16 12:54:21 -04:00
Kelsey Jordahl
10722da48e
PY3: Use explicit relative imports in tests
2014-04-15 18:12:09 -04:00
Kelsey Jordahl
e2717cef1b
PY3: Remove .order() pandas method which fails in python 3 and is arguably useless in python 2
2014-04-15 18:11:25 -04:00
Kelsey Jordahl
4f4b1ac8f5
PY3: Use explicit list
2014-04-15 18:00:10 -04:00
Kelsey Jordahl
159d69e1e0
TST: Explicitly use relative imports and clean up tests
2013-11-12 22:58:31 -05:00
Kelsey Jordahl
85365657d7
TST: Use local unittest for python 2.6 compatability in test_types
2013-11-12 22:56:18 -05:00
Kelsey Jordahl
2008b33074
Revert "TST: unittest2 didn't like skipIf"
...
This reverts commit e70ea78321749b8229fdfd1b359b050af1c25a34.
2013-11-12 22:56:18 -05:00
Kelsey Jordahl
266f30f222
TST: unittest2 didn't like skipIf
2013-11-12 22:56:17 -05:00
Jeff Tratner
b014e4f0ff
ENH: Allow more flexibility with geometries
2013-11-05 22:11:24 -05:00
Jeff Tratner
7df6db234f
ENH: Allow geometry property to be set.
...
* Allows for clearer errors when a GeoDataFrame is created but has no
geometry.
* TST: Add test util for comparing sequence (b/c assert_almost_equal seems
to not work with shapely.
2013-11-04 00:31:12 -05:00
Kelsey Jordahl
b1dd61a569
TST: Skip groupby test in pandas 0.12; add fillna test asserts
2013-11-01 08:43:57 -04:00
Kelsey Jordahl
885cabdf79
TST: Enable groupby test
2013-10-30 23:21:19 -04:00
Kelsey Jordahl
1b77106b0d
TST: re-enable skipped tests
2013-10-30 20:53:03 -04:00
Jacob Wasserman
ae27e9775a
Skip the type tests for head and tail
...
Pandas commit c6d07a8 uses iloc for head and tail, which cause these
tests to fail. Skip them. The test for iloc is already being skipped.
2013-10-30 02:28:21 -04:00
Jake Wasserman
f544fd846f
Add type tests for slicing/fancy indexing.
...
Add one check to output type of fancy index test
2013-08-22 22:57:27 -04:00
Jake Wasserman
2d4128ad6f
Return proper type for GeoDataFrame.__getitem__
...
Introduce type testing for GeoDataFrame.
Add tests for boolean index.
GeoDataFrame.__getitem__(key) returns the Geo* equivalent class when a
'geometry' column is present.
The following are True when df is a GeoDataFrame:
type(df['geometry']) is GeoSeries
type(df['column']) is Series
type(df[['column1', 'column2', 'geometry']]) is GeoDataFrame
type(df[['column1', 'column2']]) is DataFrame
2013-08-22 20:20:03 -04:00
Kelsey Jordahl
8ca8a85e5b
TST: Skip tests for methods not yet implemented in GeoPandas
2013-08-20 19:08:34 -04:00
Kelsey Jordahl
7cec9abf78
TST: Some tests for pandas methods returning GeoSeries type
2013-08-20 17:53:28 -04:00