Commit Graph
10 Commits
Author SHA1 Message Date
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