chunk_id large_stringlengths 36 36 | doc_type large_stringclasses 2
values | category large_stringclasses 17
values | document large_stringclasses 50
values | version_raw large_stringclasses 590
values | chunk_index int64 0 262 | text large_stringlengths 11 5.69k | file_path large_stringclasses 882
values |
|---|---|---|---|---|---|---|---|
de1865ba-b4ea-55bb-a970-4beccdfe4957 | changelog | pandas | pandas_whatsnew | 0.15.0 | 72 | * Bug in `tslib.tz_convert` and `tslib.tz_convert_single` may return different results ([GH 7798](https://github.com/pandas-dev/pandas/issues/7798))
* Bug in `DatetimeIndex.intersection` of non-overlapping timestamps with tz raises `IndexError` ([GH 7880](https://github.com/pandas-dev/pandas/issues/7880))
* Bug in alig... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
ba48350a-f363-545d-acad-32342b595bf1 | changelog | pandas | pandas_whatsnew | 0.15.0 | 73 | * Bug in `to_excel()` where a negative sign was being prepended to positive infinity and was absent for negative infinity ([GH 7949](https://github.com/pandas-dev/pandas/issues/7949))
* Bug in area plot draws legend with incorrect `alpha` when `stacked=True` ([GH 8027](https://github.com/pandas-dev/pandas/issues/8027))... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
349bbd43-4b94-5c3e-8fff-e3f94519c66f | changelog | pandas | pandas_whatsnew | 0.15.0 | 74 | * Bug in `DataFrame.shift` where empty columns would throw `ZeroDivisionError` on numpy 1.7 ([GH 8019](https://github.com/pandas-dev/pandas/issues/8019))
* Bug in installation where `html_encoding/*.html` wasn’t installed and
therefore some tests were not running correctly ([GH 7927](https://github.com/pandas-dev/pan... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
f617fff8-0426-594e-93f0-9192d93c4876 | changelog | pandas | pandas_whatsnew | 0.15.0 | 75 | * Bug in `DataFrame.plot(kind='scatter')` draws points and errorbars with different colors when the color is specified by `c` keyword ([GH 8081](https://github.com/pandas-dev/pandas/issues/8081))
* Bug in `Float64Index` where `iat` and `at` were not testing and were
failing ([GH 8092](https://github.com/pandas-dev/pa... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
202219b3-0a66-57b7-9352-a7277bf969d3 | changelog | pandas | pandas_whatsnew | 0.15.0 | 76 | * Bug in accessing groups from a `GroupBy` when the original grouper
was a tuple ([GH 8121](https://github.com/pandas-dev/pandas/issues/8121)).
* Bug in `.at` that would accept integer indexers on a non-integer index and do fallback ([GH 7814](https://github.com/pandas-dev/pandas/issues/7814))
* Bug with kde plot and... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
d2f31704-177e-5f7f-bf0b-68c4136ff0c8 | changelog | pandas | pandas_whatsnew | 0.15.0 | 77 | * Bug where `col_space` was ignored in `DataFrame.to_string()` when `header=False` ([GH 8230](https://github.com/pandas-dev/pandas/issues/8230)).
* Bug with `DatetimeIndex.asof` incorrectly matching partial strings and returning the wrong date ([GH 8245](https://github.com/pandas-dev/pandas/issues/8245)).
* Bug in plot... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
866b3ce4-aeb0-566b-b177-4df793db74db | changelog | pandas | pandas_whatsnew | 0.15.0 | 78 | * Bug where `col_space` was ignored in `DataFrame.to_string()` when `header=False` ([GH 8230](https://github.com/pandas-dev/pandas/issues/8230)).
* Bug in `to_clipboard` that would clip long column data ([GH 8305](https://github.com/pandas-dev/pandas/issues/8305))
* Bug in `DataFrame` terminal display: Setting max\_col... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
cfd6111d-1012-5ba5-8d8c-5cf22b8bfd0d | changelog | pandas | pandas_whatsnew | 0.15.0 | 79 | * Bug in masked series assignment where mismatching types would break alignment ([GH 8387](https://github.com/pandas-dev/pandas/issues/8387))
* Bug in `NDFrame.equals` gives false negatives with dtype=object ([GH 8437](https://github.com/pandas-dev/pandas/issues/8437))
* Bug in assignment with indexer where type divers... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
2793fcbc-b976-5865-9fe5-44c1c9eabdfa | changelog | pandas | pandas_whatsnew | 0.15.0 | 80 | * Bug in item assignment of a `DataFrame` with MultiIndex columns where right-hand-side columns were not aligned ([GH 7655](https://github.com/pandas-dev/pandas/issues/7655))
* Suppress FutureWarning generated by NumPy when comparing object arrays containing NaN for equality ([GH 7065](https://github.com/pandas-dev/pan... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
afdd1441-78e3-5292-9edd-a4be15f25435 | changelog | pandas | pandas_whatsnew | 0.15.0 | 81 | * Jeff Reback
* Jeff Tratner
* Jesse Farnham +
* Joe Bradish +
* Joerg Rittinger +
* John W. O’Brien
* Joris Van den Bossche
* Kevin Sheppard
* Kyle Meyer
* Max Chang +
* Michael Mueller
* Michael W Schatzow +
* Mike Kelly
* Mortada Mehyar
* Nathan Sanders +
* Nathan Typanski +
* Paul Masurel +
* Phillip Cloud
* Pietro... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
f6419f86-d60d-50b4-8b27-67e1eaa2de55 | changelog | pandas | pandas_whatsnew | 0.15.1 | 0 | # What's new in pandas 0.15.1
Source: https://pandas.pydata.org/docs/whatsnew/v0.15.1.html
# Version 0.15.1 (November 9, 2014)[#](#version-0-15-1-november-9-2014 "Link to this heading")
This is a minor bug-fix release from 0.15.0 and includes a small number of API changes, several new features,
enhancements, and per... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
f9a38608-da07-54a4-8f2d-0d95ba12c64c | changelog | pandas | pandas_whatsnew | 0.15.1 | 1 | Length: 5, dtype: datetime64[ns]
```
previous behavior:
```None
In [6]: s.dt.hour
Out[6]:
0 0
1 0
2 -1
3 0
4 0
dtype: int64
```
current behavior:
```None
In [4]: s.dt.hour
Out[4]:
0 0.0
1 0.0
2 NaN
3 0.0
4 0.0
Length: 5, dtype: float64
``... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
b247b859-acb6-5e01-afe5-4a4a5f20b725 | changelog | pandas | pandas_whatsnew | 0.15.1 | 2 | In [4]: df.groupby(ts, as_index=False).max()
Out[4]:
jim joe
0 72 83
1 77 84
2 96 65
```
* `groupby` will not erroneously exclude columns if the column name conflicts
with the grouper name ([GH 8112](https://github.com/pandas-dev/pandas/issues/8112)):
```None
In [9]: df = pd.DataFra... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
8735c81e-b22b-5bf1-86f7-ef5e663f37d7 | changelog | pandas | pandas_whatsnew | 0.15.1 | 3 | not found in the index ([GH 7860](https://github.com/pandas-dev/pandas/issues/7860)):
```None
In [13]: s = pd.Series(["a", "b", "c", "d"], [4, 3, 2, 1])
In [14]: s
Out[14]:
4 a
3 b
2 c
1 d
Length: 4, dtype: object
```
previous behavior:
```None
In [8]: s.loc[3.5:1.5]
KeyEr... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
ad8b73a1-974b-552c-b6f6-fcd1071dbd07 | changelog | pandas | pandas_whatsnew | 0.15.1 | 4 | If an expiry date that is not valid is given, data for the next expiry after the given
date is returned.
Option data frames are now saved on the instance as `callsYYMMDD` or `putsYYMMDD`. Previously
they were saved as `callsMMYY` and `putsMMYY`. The next expiry is saved as `calls` and `puts`.
New features:
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
c6c5572a-da43-5470-a897-d9797dce56e9 | changelog | pandas | pandas_whatsnew | 0.15.1 | 5 | In [20]: aapl.expiry_dates
Out[20]:
[datetime.date(2014, 11, 14),
datetime.date(2014, 11, 22),
datetime.date(2014, 11, 28),
datetime.date(2014, 12, 5),
datetime.date(2014, 12, 12),
datetime.date(2014, 12, 20),
datetime.date(2015, 1, 17),
datetime.date(2015, 2, 20),
datetime.date(2015, 4, 1... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
2dbee0f8-24ec-5a44-badd-2760981a6b05 | changelog | pandas | pandas_whatsnew | 0.15.1 | 6 | previous versions, plotting an array of `datetime64` values will have resulted
in plotted integer values. To keep the previous behaviour, you can do
`del matplotlib.units.registry[np.datetime64]` ([GH 8614](https://github.com/pandas-dev/pandas/issues/8614)).
## Enhancements[#](#enhancements "Link to this heading... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
fdeaa525-9d9f-5846-af65-f143a414c59d | changelog | pandas | pandas_whatsnew | 0.15.1 | 7 | * Represent `MultiIndex` labels with a dtype that utilizes memory based on the level size. In prior versions, the memory usage was a constant 8 bytes per element in each level. In addition, in prior versions, the *reported* memory usage was incorrect as it didn’t show the usage for the memory occupied by the underling ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
53f948ba-ba4e-5be4-94c0-4af272428bdf | changelog | pandas | pandas_whatsnew | 0.15.1 | 8 | * Added Index properties `is_monotonic_increasing` and `is_monotonic_decreasing` ([GH 8680](https://github.com/pandas-dev/pandas/issues/8680)).
* Added option to select columns when importing Stata files ([GH 7935](https://github.com/pandas-dev/pandas/issues/7935))
* Qualify memory usage in `DataFrame.info()` by adding... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
ec200005-8d8e-52a8-971e-c14b5052be2c | changelog | pandas | pandas_whatsnew | 0.15.1 | 9 | simply dropped prior to the request. The issue was that many good countries
were cropped in the hard-coded approach. All countries will work now, but
some bad countries will raise exceptions because some edge cases break the
entire response. ([GH 8482](https://github.com/pandas-dev/pandas/issues/8482))
* Added ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
78764ce5-b806-5510-8344-aef850cf868d | changelog | pandas | pandas_whatsnew | 0.15.1 | 10 | * Bug in `Categorical` not created properly with `Series.to_frame()` ([GH 8626](https://github.com/pandas-dev/pandas/issues/8626))
* Bug in coercing in astype of a `Categorical` of a passed `pd.Categorical` (this now raises `TypeError` correctly), ([GH 8626](https://github.com/pandas-dev/pandas/issues/8626))
* Bug in `... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
546a249f-1d0a-5134-ab57-1ec597a2b25a | changelog | pandas | pandas_whatsnew | 0.15.1 | 11 | * Bug in duplicated/drop\_duplicates with a Categorical ([GH 8623](https://github.com/pandas-dev/pandas/issues/8623))
* Bug in `Categorical` reflected comparison operator raising if the first argument was a numpy array scalar (e.g. np.int64) ([GH 8658](https://github.com/pandas-dev/pandas/issues/8658))
* Bug in Panel i... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
3a9ebea7-5124-5628-9efe-0ec22a06a398 | changelog | pandas | pandas_whatsnew | 0.15.1 | 12 | * Bug in setitem with empty indexer and unwanted coercion of dtypes ([GH 8669](https://github.com/pandas-dev/pandas/issues/8669))
* Bug in ix/loc block splitting on setitem (manifests with integer-like dtypes, e.g. datetime64) ([GH 8607](https://github.com/pandas-dev/pandas/issues/8607))
* Bug when doing label based in... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
aee3aacb-f21b-5f20-bb46-3e5104145bce | changelog | pandas | pandas_whatsnew | 0.15.1 | 13 | * Fixed a bug where plotting a column `y` and specifying a label would mutate the index name of the original DataFrame ([GH 8494](https://github.com/pandas-dev/pandas/issues/8494))
* Fix regression in plotting of a DatetimeIndex directly with matplotlib ([GH 8614](https://github.com/pandas-dev/pandas/issues/8614)).
* B... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
af268ab2-09de-52bd-b936-f4af6d50d002 | changelog | pandas | pandas_whatsnew | 0.15.1 | 14 | ## Contributors[#](#contributors "Link to this heading")
A total of 23 people contributed patches to this release. People with a
“+” by their names contributed a patch for the first time.
* Aaron Staple +
* Andrew Rosenfeld
* Anton I. Sipos
* Artemy Kolchinsky
* Bill Letson +
* Dave Hughes +
* David Stephens
* Guilla... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.1.md |
4e35cfb8-f961-56e8-b67e-4a305a6a1fe7 | changelog | pandas | pandas_whatsnew | 0.15.2 | 0 | # What's new in pandas 0.15.2
Source: https://pandas.pydata.org/docs/whatsnew/v0.15.2.html
# Version 0.15.2 (December 12, 2014)[#](#version-0-15-2-december-12-2014 "Link to this heading")
This is a minor release from 0.15.1 and includes a large number of bug fixes
along with several new features, enhancements, and p... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
9bdb9221-5a87-53cb-ae60-fd59ea51fd54 | changelog | pandas | pandas_whatsnew | 0.15.2 | 1 | ...: 'jolie':np.random.rand(4)}).set_index(['jim', 'joe'])
...:
In [2]: df
Out[2]:
jolie
jim joe
0 x 0.126970
x 0.966718
1 z 0.260476
y 0.897237
[4 rows x 1 columns]
In [3]: df.index.lexsort_depth
Out[3]: 1
# in prior versions ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
e8e41aa2-2cc9-51b0-abe6-f7912779d216 | changelog | pandas | pandas_whatsnew | 0.15.2 | 2 | whether they were “used” or not (see [GH 8559](https://github.com/pandas-dev/pandas/issues/8559) for the discussion).
Previous behaviour was to return all categories:
```None
In [3]: cat = pd.Categorical(['a', 'b', 'a'], categories=['a', 'b', 'c'])
In [4]: cat
Out[4]:
[a, b, a]
Categories (3, object):... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
8a9c9a81-60b4-5aa7-bbdd-3417619f6d32 | changelog | pandas | pandas_whatsnew | 0.15.2 | 3 | * `Series.all` and `Series.any` now support the `level` and `skipna` parameters. `Series.all`, `Series.any`, `Index.all`, and `Index.any` no longer support the `out` and `keepdims` parameters, which existed for compatibility with ndarray. Various index types no longer support the `all` and `any` aggregation functions a... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
54620aec-d59e-5eff-969d-bfd7f71534d9 | changelog | pandas | pandas_whatsnew | 0.15.2 | 4 | In [5]: data['y'] = [2, 4, 6]
In [6]: data
Out[6]:
x y
0 1 2
1 2 4
2 3 6
[3 rows x 2 columns]
# this assignment was inconsistent
In [7]: data.y = 5
```
Old behavior:
```None
In [6]: data.y
Out[6]: 2
In [7]: data['y'].values
Out[7]: array([5, 5, 5])
```
New behavio... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
026623a2-fdf2-5704-95a0-fe830b612abd | changelog | pandas | pandas_whatsnew | 0.15.2 | 5 |
New behavior:
```None
In [10]: s = pd.Series(np.arange(3), ['a', 'b', 'c'])
In [11]: s.loc['c':'a':-1]
Out[11]:
c 2
b 1
a 0
Length: 3, dtype: int64
```
## Enhancements[#](#enhancements "Link to this heading")
`Categorical` enhancements:
* Added ability to export Categorical data to S... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
4547f59c-f78d-53ca-bf7d-123b58496dc9 | changelog | pandas | pandas_whatsnew | 0.15.2 | 6 | * Added ability to export Categorical data to/from HDF5 ([GH 7621](https://github.com/pandas-dev/pandas/issues/7621)). Queries work the same as if it was an object array. However, the `category` dtyped data is stored in a more efficient manner. See [here](../user_guide/io.html#io-hdf5-categorical) for an example and ca... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
c97f75f1-31b5-5b03-be1d-f997ff71d887 | changelog | pandas | pandas_whatsnew | 0.15.2 | 7 | * `Series.all` and `Series.any` now support the `level` and `skipna` parameters ([GH 8302](https://github.com/pandas-dev/pandas/issues/8302)):
```None
>>> s = pd.Series([False, True, False], index=[0, 0, 1])
>>> s.any(level=0)
0 True
1 False
dtype: bool
```
* `Panel` now supports the `all` and `an... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
1ec2ef1c-6d4b-569d-a493-f312521ea59d | changelog | pandas | pandas_whatsnew | 0.15.2 | 8 | * Added Google Analytics (pandas.io.ga) basic documentation ([GH 8835](https://github.com/pandas-dev/pandas/issues/8835)). See [here](https://pandas.pydata.org/pandas-docs/version/0.15.2/remote_data.html#remote-data-ga).
* `Timedelta` arithmetic returns `NotImplemented` in unknown cases, allowing extensions by custom c... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
7935e386-4e03-5352-a2eb-72bb4aada48b | changelog | pandas | pandas_whatsnew | 0.15.2 | 9 | * Added context manager to `HDFStore` for automatic closing ([GH 8791](https://github.com/pandas-dev/pandas/issues/8791)).
* `to_datetime` gains an `exact` keyword to allow for a format to not require an exact match for a provided format string (if its `False`). `exact` defaults to `True` (meaning that exact matching i... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
fe04626e-8080-5311-a4c8-278df5854d9a | changelog | pandas | pandas_whatsnew | 0.15.2 | 10 | ## Performance[#](#performance "Link to this heading")
* Reduce memory usage when skiprows is an integer in read\_csv ([GH 8681](https://github.com/pandas-dev/pandas/issues/8681))
* Performance boost for `to_datetime` conversions with a passed `format=`, and the `exact=False` ([GH 8904](https://github.com/pandas-dev/p... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
9001f2d5-a04e-5ebd-83c9-c529b136ecea | changelog | pandas | pandas_whatsnew | 0.15.2 | 11 | * Bug in using a `pd.Grouper(key=...)` with no level/axis or level only ([GH 8795](https://github.com/pandas-dev/pandas/issues/8795), [GH 8866](https://github.com/pandas-dev/pandas/issues/8866))
* Report a `TypeError` when invalid/no parameters are passed in a groupby ([GH 8015](https://github.com/pandas-dev/pandas/iss... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
6ff0483d-36b4-5a97-9594-d83e267115ac | changelog | pandas | pandas_whatsnew | 0.15.2 | 12 | * Unclear error message in csv parsing when passing dtype and names and the parsed data is a different data type ([GH 8833](https://github.com/pandas-dev/pandas/issues/8833))
* Bug in slicing a MultiIndex with an empty list and at least one boolean indexer ([GH 8781](https://github.com/pandas-dev/pandas/issues/8781))
*... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
ac72b8a3-a0d9-5574-bb8a-df98daef8a39 | changelog | pandas | pandas_whatsnew | 0.15.2 | 13 | * `slice` string method now takes step into account ([GH 8754](https://github.com/pandas-dev/pandas/issues/8754))
* Bug in `BlockManager` where setting values with different type would break block integrity ([GH 8850](https://github.com/pandas-dev/pandas/issues/8850))
* Bug in `DatetimeIndex` when using `time` object a... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
69468133-67dc-5c17-a8e5-8fd3647db515 | changelog | pandas | pandas_whatsnew | 0.15.2 | 14 | * Bug in `to_datetime` when parsing a nanoseconds using the `%f` format ([GH 8989](https://github.com/pandas-dev/pandas/issues/8989))
* `io.data.Options` now raises `RemoteDataError` when no expiry dates are available from Yahoo and when it receives no data from Yahoo ([GH 8761](https://github.com/pandas-dev/pandas/iss... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
641e2631-fa2b-5639-8381-217715104ce3 | changelog | pandas | pandas_whatsnew | 0.15.2 | 15 | * Defined `.size` attribute across `NDFrame` objects to provide compat with numpy >= 1.9.1; buggy with `np.array_split` ([GH 8846](https://github.com/pandas-dev/pandas/issues/8846))
* Skip testing of histogram plots for matplotlib <= 1.2 ([GH 8648](https://github.com/pandas-dev/pandas/issues/8648)).
* Bug where `get_da... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
19f762dd-0aa6-5cf5-be94-c7d570ace943 | changelog | pandas | pandas_whatsnew | 0.15.2 | 16 | * Bug where `DataFrame.plot(kind='scatter')` fails when checking if an np.array is in the DataFrame ([GH 8852](https://github.com/pandas-dev/pandas/issues/8852))
* Bug in `pd.infer_freq/DataFrame.inferred_freq` that prevented proper sub-daily frequency inference when the index contained DST days ([GH 8772](https://gith... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
c8062e3c-538c-5a89-90d0-01dc86821aff | changelog | pandas | pandas_whatsnew | 0.15.2 | 17 | * BUG CSV: fix problem with trailing white space in skipped rows, ([GH 8679](https://github.com/pandas-dev/pandas/issues/8679)), ([GH 8661](https://github.com/pandas-dev/pandas/issues/8661)), ([GH 8983](https://github.com/pandas-dev/pandas/issues/8983))
* Regression in `Timestamp` does not parse ‘Z’ zone designator for... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
e2dbf967-f838-5cd0-bbd6-2ce999b6d936 | changelog | pandas | pandas_whatsnew | 0.15.2 | 18 | * Bug where passing a unit to the TimedeltaIndex constructor applied the to nano-second conversion twice. ([GH 9011](https://github.com/pandas-dev/pandas/issues/9011)).
* Bug in plotting of a period-like array ([GH 9012](https://github.com/pandas-dev/pandas/issues/9012))
## Contributors[#](#contributors "Link to this ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
284f8699-3a65-503c-be79-6a0451dce958 | changelog | pandas | pandas_whatsnew | 0.15.2 | 19 | * Vikram Bhandoh +
* WANG Aiyong
* Will Holmgren +
* behzad nouri
* broessli +
* charalampos papaloizou +
* immerrr
* jnmclarty
* jreback
* mgilbert +
* onesandzeroes
* peadarcoyle +
* rockg
* seth-p
* sinhrks
* unutbu
* wavedatalab +
* Åsmund Hjulstad +
| large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.2.md |
15ee6343-8be4-5011-b870-95d581ab0487 | changelog | pandas | pandas_whatsnew | 0.16.0 | 0 | # What's new in pandas 0.16.0
Source: https://pandas.pydata.org/docs/whatsnew/v0.16.0.html
# Version 0.16.0 (March 22, 2015)[#](#version-0-16-0-march-22-2015 "Link to this heading")
This is a major release from 0.15.2 and includes a small number of API changes, several new features,
enhancements, and performance imp... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
186f0a72-85fd-51ee-9dfa-4befc8f735d1 | changelog | pandas | pandas_whatsnew | 0.16.0 | 1 | * Changes to the default for ordering in the `Categorical` constructor, see [here](#whatsnew-0160-api-breaking-categorical)
* Enhancement to the `.str` accessor to make string operations easier, see [here](#whatsnew-0160-enhancements-string)
* The `pandas.tools.rplot`, `pandas.sandbox.qtpandas` and `pandas.rpy`
modul... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
75f5c402-5efc-597b-8204-f88d02874c32 | changelog | pandas | pandas_whatsnew | 0.16.0 | 2 | * [Backwards incompatible API changes](#backwards-incompatible-api-changes)
+ [Changes in timedelta](#changes-in-timedelta)
+ [Indexing changes](#indexing-changes)
+ [Categorical changes](#categorical-changes)
+ [Other API changes](#other-api-changes)
+ [Deprecations](#deprecations)
+ [Removal of prior ver... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
3e87ba07-161f-5aa6-9d5e-4ab15cb980e6 | changelog | pandas | pandas_whatsnew | 0.16.0 | 3 | to be inserted (for example, a `Series` or NumPy array), or a function
of one argument to be called on the `DataFrame`. The new values are inserted,
and the entire DataFrame (with all original and new columns) is returned.
```None
In [1]: iris = pd.read_csv('data/iris.data')
In [2]: iris.head()
Out[2]:
SepalLengt... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
23ff75eb-b44e-5030-8151-df5853c5faf8 | changelog | pandas | pandas_whatsnew | 0.16.0 | 4 | 1 4.9 3.0 1.4 0.2 Iris-setosa 0.612245
2 4.7 3.2 1.3 0.2 Iris-setosa 0.680851
3 4.6 3.1 1.5 0.2 Iris-setosa 0.673913
4 5.0 3.6 1.4 0.2 Iris-setosa 0.720000
[5 rows... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
d6759484-d266-5c1b-83af-cc7f88ef8a6e | changelog | pandas | pandas_whatsnew | 0.16.0 | 5 | 4 5.0 3.6 1.4 0.2 Iris-setosa 0.720000
[5 rows x 6 columns]
```
The power of `assign` comes when used in chains of operations. For example,
we can limit the DataFrame to just those with a Sepal Length greater than 5,
calculate the ratio, and plot
```None
In [5]: iris = pd.read_... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
6c9900f9-a782-5293-8454-8560d3df1857 | changelog | pandas | pandas_whatsnew | 0.16.0 | 6 | ### Interaction with scipy.sparse[#](#interaction-with-scipy-sparse "Link to this heading")
Added `SparseSeries.to_coo()` and `SparseSeries.from_coo()` methods ([GH 8048](https://github.com/pandas-dev/pandas/issues/8048)) for converting to and from `scipy.sparse.coo_matrix` instances (see [here](../user_guide/sparse.h... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
a8974984-235d-5ec5-9763-22c493093915 | changelog | pandas | pandas_whatsnew | 0.16.0 | 7 | A, rows, columns = ss.to_coo(row_levels=['A', 'B'],
column_levels=['C', 'D'],
sort_labels=False)
A
A.todense()
rows
columns
```
The from\_coo method is a convenience method for creating a `SparseSeries`
from a `scipy.sparse.coo_matrix`:
```None
from scipy imp... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
4a798b68-a53e-5d40-9b94-7af4860ea40a | changelog | pandas | pandas_whatsnew | 0.16.0 | 8 | * Following new methods are accessible via `.str` accessor to apply the function to each values. This is intended to make it more consistent with standard methods on strings. ([GH 9282](https://github.com/pandas-dev/pandas/issues/9282), [GH 9352](https://github.com/pandas-dev/pandas/issues/9352), [GH 9386](https://gith... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
0758b31d-38dc-50c6-8e24-b196af2eb141 | changelog | pandas | pandas_whatsnew | 0.16.0 | 9 | * [`Series.str.pad()`](../reference/api/pandas.Series.str.pad.html#pandas.Series.str.pad "pandas.Series.str.pad") and [`Series.str.center()`](../reference/api/pandas.Series.str.center.html#pandas.Series.str.center "pandas.Series.str.center") now accept `fillchar` option to specify filling character ([GH 9352](https://g... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
5ab303fb-903c-58d5-8dd8-d8e266b7b0ad | changelog | pandas | pandas_whatsnew | 0.16.0 | 10 | In [14]: s.str.slice_replace(0, 1)
Out[14]:
0 BCD
1 FGH
2 JK
Length: 3, dtype: object
```
### Other enhancements[#](#other-enhancements "Link to this heading")
* Reindex now supports `method='nearest'` for frames or series with a monotonic increasing or decreasing index ([GH 9258](https://git... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
4009754f-43d9-5300-8617-21dd1bb35c2f | changelog | pandas | pandas_whatsnew | 0.16.0 | 11 | # Returns the 1st and 4th sheet, as a dictionary of DataFrames.
pd.read_excel('path_to_file.xls', sheetname=['Sheet1', 3])
```
* Allow Stata files to be read incrementally with an iterator; support for long strings in Stata files. See the docs [here](../user_guide/io.html#io-stata-reader) ([GH 9493](https://githu... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
176918c3-b4cf-51a9-b7cf-0caf117267cd | changelog | pandas | pandas_whatsnew | 0.16.0 | 12 | * Lag parameter was added to the autocorrelation method of `Series`, defaults to lag-1 autocorrelation ([GH 9192](https://github.com/pandas-dev/pandas/issues/9192))
* `Timedelta` will now accept `nanoseconds` keyword in constructor ([GH 9273](https://github.com/pandas-dev/pandas/issues/9273))
* SQL code now safely esca... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
71dc6fda-63fb-53a3-8b07-3fb1a25bda3b | changelog | pandas | pandas_whatsnew | 0.16.0 | 13 | * A `verbose` argument has been augmented in `io.read_excel()`, defaults to False. Set to True to print sheet names as they are parsed. ([GH 9450](https://github.com/pandas-dev/pandas/issues/9450))
* Added `days_in_month` (compatibility alias `daysinmonth`) property to `Timestamp`, `DatetimeIndex`, `Period`, `PeriodInd... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
391b3af7-8ce6-5bf3-91ce-412ef25fdb8e | changelog | pandas | pandas_whatsnew | 0.16.0 | 14 | ## Backwards incompatible API changes[#](#backwards-incompatible-api-changes "Link to this heading")
### Changes in timedelta[#](#changes-in-timedelta "Link to this heading")
In v0.15.0 a new scalar type `Timedelta` was introduced, that is a
sub-class of `datetime.timedelta`. Mentioned [here](v0.15.0.html#whatsnew-01... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
b8fe3477-3ddf-5ea2-936a-68f6c43ca4c3 | changelog | pandas | pandas_whatsnew | 0.16.0 | 15 | So in v0.16.0, we are restoring the API to match that of `datetime.timedelta`. Further, the component values are still available through the `.components` accessor. This affects the `.seconds` and `.microseconds` accessors, and removes the `.hours`, `.minutes`, `.milliseconds` accessors. These changes affect `Timedelta... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
5e9d3fe1-0248-5df2-afc3-64b47b62053c | changelog | pandas | pandas_whatsnew | 0.16.0 | 16 | Out[21]: Components(days=1, hours=10, minutes=11, seconds=12, milliseconds=100, microseconds=123, nanoseconds=0)
In [22]: t.components.seconds
Out[22]: 12
```
### Indexing changes[#](#indexing-changes "Link to this heading")
The behavior of a small sub-set of edge cases for using `.loc` have changed ([GH 8613](https... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
8dca052b-1e75-509d-87f8-0dcb910d689c | changelog | pandas | pandas_whatsnew | 0.16.0 | 17 | 2013-01-01 0.469112 -0.282863 -1.509059 -1.135632
2013-01-02 1.212112 -0.173215 0.119209 -1.044236
2013-01-03 -0.861849 -2.104569 -0.494929 1.071804
2013-01-04 0.721555 -0.706771 -1.039575 0.271860
2013-01-05 -0.424972 0.567020 0.276232 -1.087401
[5 rows x 4 columns]
In [25]: s = pd.Series(range... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
a21fa2ca-e653-591b-8ab9-6fbdca25ffae | changelog | pandas | pandas_whatsnew | 0.16.0 | 18 | [4 rows x 4 columns]
In [28]: s.loc[-10:3]
Out[28]:
-2 0
-1 1
1 2
2 3
3 4
Length: 5, dtype: int64
```
* Allow slicing with float-like values on an integer index for `.ix`. Previously this was only enabled for `.loc`:
Previous behavior
```None
In [8]: s.ix[-1.0:2]
TypeEr... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
e803f36f-d45e-58bf-aaf1-55f8e4988b11 | changelog | pandas | pandas_whatsnew | 0.16.0 | 19 | TypeError: Cannot do slice indexing on <class 'pandas.tseries.index.DatetimeIndex'> with <type 'int'> keys
```
### Categorical changes[#](#categorical-changes "Link to this heading")
In prior versions, `Categoricals` that had an unspecified ordering (meaning no `ordered` keyword was passed) were defaulted as `ord... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
af5928f3-93a7-52f8-b233-f34e364150c0 | changelog | pandas | pandas_whatsnew | 0.16.0 | 20 | dtype: category
Categories (3, int64): [0 < 1 < 2]
In [5]: s.cat.ordered
Out[5]: True
In [6]: s.cat.ordered = False
In [7]: s
Out[7]:
0 0
1 1
2 2
dtype: category
Categories (3, int64): [0, 1, 2]
```
New behavior
```None
In [29]: s = pd.Series([0, 1, 2], dtype='category')
In [30]: s
Out[30]:
0 0
1 ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
472af9a6-e7b0-5239-a1d8-d7894819634b | changelog | pandas | pandas_whatsnew | 0.16.0 | 21 | For ease of creation of series of categorical data, we have added the ability to pass keywords when calling `.astype()`. These are passed directly to the constructor.
```None
In [54]: s = pd.Series(["a", "b", "c", "a"]).astype('category', ordered=True)
In [55]: s
Out[55]:
0 a
1 b
2 c
3 a
dtype: category
C... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
32e18ea3-8625-5a0a-829f-c104a1c35a18 | changelog | pandas | pandas_whatsnew | 0.16.0 | 22 | Previously data was coerced to a common dtype before serialisation, which for
example resulted in integers being serialised to floats:
```None
In [2]: pd.DataFrame({'i': [1,2], 'f': [3.0, 4.2]}).to_json()
Out[2]: '{"f":{"0":3.0,"1":4.2},"i":{"0":1.0,"1":2.0}}'
```
Now each column is serialised using its... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
fa3a6d96-f7b3-5790-97a2-4d3283ce6dfe | changelog | pandas | pandas_whatsnew | 0.16.0 | 23 | * `Series` accessors `.dt`, `.cat` and `.str` now raise `AttributeError` instead of `TypeError` if the series does not contain the appropriate type of data ([GH 9617](https://github.com/pandas-dev/pandas/issues/9617)). This follows Python’s built-in exception hierarchy more closely and ensures that tests like `hasattr(... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
0ffefb08-7328-5b65-90c4-f9054567fdef | changelog | pandas | pandas_whatsnew | 0.16.0 | 24 | In [2]: pd.Series([0, 1, 2, 3], list('abcd')) | pd.Series([4, 4, 4, 4], list('abcd'))
Out[2]:
a 4
b 5
c 6
d 7
dtype: int64
```
* During division involving a `Series` or `DataFrame`, `0/0` and `0//0` now give `np.nan` instead of `np.inf`. ([GH 9144](https://github.com/pandas-dev/pandas/issues... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
2b357688-36e7-5caa-8590-233f67f437b7 | changelog | pandas | pandas_whatsnew | 0.16.0 | 25 | * `Series.describe` for categorical data will now give counts and frequencies of 0, not `NaN`, for unused categories ([GH 9443](https://github.com/pandas-dev/pandas/issues/9443))
* Due to a bug fix, looking up a partial string label with `DatetimeIndex.asof` now includes values that match the string, even if they are a... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
ed4ada21-0703-59ac-a0e5-5675ab2b01cf | changelog | pandas | pandas_whatsnew | 0.16.0 | 26 | ### Deprecations[#](#deprecations "Link to this heading")
* The `rplot` trellis plotting interface is deprecated and will be removed
in a future version. We refer to external packages like
[seaborn](http://stanford.edu/~mwaskom/software/seaborn/) for similar
but more refined functionality ([GH 3445](https://gith... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
8b7f957f-4ec1-5fab-b382-0f40c9381681 | changelog | pandas | pandas_whatsnew | 0.16.0 | 27 | Similar functionality can be accessed through the [rpy2](http://rpy2.bitbucket.org/) project ([GH 9602](https://github.com/pandas-dev/pandas/issues/9602))
* Adding `DatetimeIndex/PeriodIndex` to another `DatetimeIndex/PeriodIndex` is being deprecated as a set-operation. This will be changed to a `TypeError` in a futu... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
6db48fe1-50cd-5799-a87f-540d2c3a4491 | changelog | pandas | pandas_whatsnew | 0.16.0 | 28 | ### Removal of prior version deprecations/changes[#](#removal-of-prior-version-deprecations-changes "Link to this heading")
* `DataFrame.pivot_table` and `crosstab`’s `rows` and `cols` keyword arguments were removed in favor
of `index` and `columns` ([GH 6581](https://github.com/pandas-dev/pandas/issues/6581))
* `Da... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
f50baf3b-e13e-5d6a-97c8-ec518586ce04 | changelog | pandas | pandas_whatsnew | 0.16.0 | 29 | * `DataFrame.to_json` 30x performance improvement for mixed dtype frames. ([GH 9037](https://github.com/pandas-dev/pandas/issues/9037))
* Performance improvements in `MultiIndex.duplicated` by working with labels instead of values ([GH 9125](https://github.com/pandas-dev/pandas/issues/9125))
* Improved the speed of `nu... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
bf140583-28c9-5685-84e7-0c52e8415a2e | changelog | pandas | pandas_whatsnew | 0.16.0 | 30 | * Performance and memory usage improvements in `merge` when key space exceeds `int64` bounds ([GH 9151](https://github.com/pandas-dev/pandas/issues/9151))
* Performance improvements in multi-key `groupby` ([GH 9429](https://github.com/pandas-dev/pandas/issues/9429))
* Performance improvements in `MultiIndex.sortlevel` ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
83492024-61f6-51ee-9017-663e3b74af44 | changelog | pandas | pandas_whatsnew | 0.16.0 | 31 | * Fixed compatibility issue in `DatetimeIndex` affecting architectures where `numpy.int_` defaults to `numpy.int32` ([GH 8943](https://github.com/pandas-dev/pandas/issues/8943))
* Bug in Panel indexing with an object-like ([GH 9140](https://github.com/pandas-dev/pandas/issues/9140))
* Bug in the returned `Series.dt.com... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
c3c32b5c-d071-53d5-ac58-6d71345538da | changelog | pandas | pandas_whatsnew | 0.16.0 | 32 | * Fixed bug in `to_sql` when mapping a `Timestamp` object column (datetime
column with timezone info) to the appropriate sqlalchemy type ([GH 9085](https://github.com/pandas-dev/pandas/issues/9085)).
* Fixed bug in `to_sql` `dtype` argument not accepting an instantiated
SQLAlchemy type ([GH 9083](https://github.com... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
349883ce-9549-5e0d-b15e-fd5c841b6a78 | changelog | pandas | pandas_whatsnew | 0.16.0 | 33 | * Fixed bug on big endian platforms which produced incorrect results in `StataReader` ([GH 8688](https://github.com/pandas-dev/pandas/issues/8688)).
* Bug in `MultiIndex.has_duplicates` when having many levels causes an indexer overflow ([GH 9075](https://github.com/pandas-dev/pandas/issues/9075), [GH 5873](https://git... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
674cdb5f-9496-5377-8d60-4caecbce4a5e | changelog | pandas | pandas_whatsnew | 0.16.0 | 34 | * Bug in `MultiIndex` where inserting new keys would fail ([GH 9250](https://github.com/pandas-dev/pandas/issues/9250)).
* Bug in `groupby` when key space exceeds `int64` bounds ([GH 9096](https://github.com/pandas-dev/pandas/issues/9096)).
* Bug in `unstack` with `TimedeltaIndex` or `DatetimeIndex` and nulls ([GH 9491... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
d3d63c08-21ef-5f6e-8c92-e0ec53190c43 | changelog | pandas | pandas_whatsnew | 0.16.0 | 35 | * Bugs in `resample` around DST transitions. This required fixing offset classes so they behave correctly on DST transitions. ([GH 5172](https://github.com/pandas-dev/pandas/issues/5172), [GH 8744](https://github.com/pandas-dev/pandas/issues/8744), [GH 8653](https://github.com/pandas-dev/pandas/issues/8653), [GH 9173](... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
294ec589-d561-560a-a9e1-fc6909e309be | changelog | pandas | pandas_whatsnew | 0.16.0 | 36 | * `DataFrame` now properly supports simultaneous `copy` and `dtype` arguments in constructor ([GH 9099](https://github.com/pandas-dev/pandas/issues/9099))
* Bug in `read_csv` when using skiprows on a file with CR line endings with the c engine. ([GH 9079](https://github.com/pandas-dev/pandas/issues/9079))
* `isnull` no... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
b8e9ab12-b7cb-52f8-9000-5bcdc39af8a2 | changelog | pandas | pandas_whatsnew | 0.16.0 | 37 | * Bug in `DatetimeIndex.__contains__` when index has duplicates and is not monotonic increasing ([GH 9512](https://github.com/pandas-dev/pandas/issues/9512))
* Fixed division by zero error for `Series.kurt()` when all values are equal ([GH 9197](https://github.com/pandas-dev/pandas/issues/9197))
* Fixed issue in the `x... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
ea85f1ef-db33-5951-893c-17e8acf3f717 | changelog | pandas | pandas_whatsnew | 0.16.0 | 38 | * `SparseSeries` and `SparsePanel` now accept zero argument constructors (same as their non-sparse counterparts) ([GH 9272](https://github.com/pandas-dev/pandas/issues/9272)).
* Regression in merging `Categorical` and `object` dtypes ([GH 9426](https://github.com/pandas-dev/pandas/issues/9426))
* Bug in `read_csv` with... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
12bd92cb-f4d7-530a-9cf8-576fb93789c4 | changelog | pandas | pandas_whatsnew | 0.16.0 | 39 | * Fixed bug with reading CSV files from Amazon S3 on python 3 raising a TypeError ([GH 9452](https://github.com/pandas-dev/pandas/issues/9452))
* Bug in the Google BigQuery reader where the ‘jobComplete’ key may be present but False in the query results ([GH 8728](https://github.com/pandas-dev/pandas/issues/8728))
* Bu... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
75dad265-97ec-5f20-a85e-f9fc92c236e6 | changelog | pandas | pandas_whatsnew | 0.16.0 | 40 | In [2]: pd.options.display.max_rows = 10
In [3]: s = pd.Series([1,1,1,1,1,1,1,1,1,1,0.9999,1,1]*10)
In [4]: s
Out[4]:
0 1
1 1
2 1
...
127 0.9999
128 1.0000
129 1.0000
Length: 130, dtype: float64
```
New behavior
```None
0 1.0000
1 1.0000
2 1.0000
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
bbe154fd-0c25-5df0-9385-469fec8f826e | changelog | pandas | pandas_whatsnew | 0.16.0 | 41 | ## Contributors[#](#contributors "Link to this heading")
A total of 60 people contributed patches to this release. People with a
“+” by their names contributed a patch for the first time.
* Aaron Toth +
* Alan Du +
* Alessandro Amici +
* Artemy Kolchinsky
* Ashwini Chaudhary +
* Ben Schiller
* Bill Letson
* Brandon B... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
55c80c93-66cc-5b66-8c30-cb5814c2c8aa | changelog | pandas | pandas_whatsnew | 0.16.0 | 42 | * bertrandhaut +
* bjonen
* cel4 +
* clham
* hsperr +
* ischwabacher
* jnmclarty
* josham +
* jreback
* omtinez +
* roch +
* sinhrks
* unutbu
| large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.0.md |
c95c7b72-a593-50dc-bb43-eb2db7b8cbb1 | changelog | pandas | pandas_whatsnew | 0.16.1 | 0 | # What's new in pandas 0.16.1
Source: https://pandas.pydata.org/docs/whatsnew/v0.16.1.html
# Version 0.16.1 (May 11, 2015)[#](#version-0-16-1-may-11-2015 "Link to this heading")
This is a minor bug-fix release from 0.16.0 and includes a large number of
bug fixes along several new features, enhancements, and performa... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
2a73e181-6f93-515f-8cae-961e0a230127 | changelog | pandas | pandas_whatsnew | 0.16.1 | 1 | * The default `Index` printing has changed to a more uniform format, see [here](#whatsnew-0161-index-repr)
* `BusinessHour` datetime-offset is now supported, see [here](../user_guide/timeseries.html#timeseries-businesshour)
* Further enhancement to the `.str` accessor to make string operations easier, see [here](#whats... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
385e72c0-0311-5f7b-8ea0-63790b3db5c2 | changelog | pandas | pandas_whatsnew | 0.16.1 | 2 | ## Enhancements[#](#enhancements "Link to this heading")
### CategoricalIndex[#](#categoricalindex "Link to this heading")
We introduce a `CategoricalIndex`, a new type of index object that is useful for supporting
indexing with duplicates. This is a container around a `Categorical` (introduced in v0.15.0)
and allows... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
28845050-dfb8-58c1-9075-19db0a6fe907 | changelog | pandas | pandas_whatsnew | 0.16.1 | 3 | setting the index, will create a `CategoricalIndex`
```None
In [5]: df2 = df.set_index('B')
In [6]: df2.index
Out[6]: CategoricalIndex(['a', 'a', 'b', 'b', 'c', 'a'], categories=['c', 'a', 'b'], ordered=False, name='B', dtype='category')
```
indexing with `__getitem__/.iloc/.loc/.ix` works similarly to an Index with... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
05877fdd-1bd1-5807-b355-44104a601a40 | changelog | pandas | pandas_whatsnew | 0.16.1 | 4 | Out[11]: CategoricalIndex(['c', 'a', 'b'], categories=['c', 'a', 'b'], ordered=False, name='B', dtype='category')
```
reindexing operations, will return a resulting index based on the type of the passed
indexer, meaning that passing a list will return a plain-old-`Index`; indexing with
a `Categorical` will return a `C... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
0437cbdb-08cd-5d23-89b2-fd96b7b72fc4 | changelog | pandas | pandas_whatsnew | 0.16.1 | 5 | categories=['a', 'b', 'c', 'd', 'e'],
ordered=False, name='B',
dtype='category')
```
See the [documentation](../user_guide/advanced.html#advanced-categoricalindex) for more. ([GH 7629](https://github.com/pandas-dev/pandas/issues/762... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
94b7467f-117b-51de-8987-bf2a3a14d709 | changelog | pandas | pandas_whatsnew | 0.16.1 | 6 |
```None
In [1]: example_series = pd.Series([0, 1, 2, 3, 4, 5])
# When no arguments are passed, returns 1
In [2]: example_series.sample()
Out[2]:
3 3
Length: 1, dtype: int64
# One may specify either a number of rows:
In [3]: example_series.sample(n=3)
Out[3]:
2 2
1 1
0 0
Length: 3, dtype: int64
# Or a ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
ba5516c7-dba8-5046-b2eb-2962e5d402a7 | changelog | pandas | pandas_whatsnew | 0.16.1 | 7 | ```None
In [9]: df = pd.DataFrame({"col1": [9, 8, 7, 6], "weight_column": [0.5, 0.4, 0.1, 0]})
In [10]: df.sample(n=3, weights="weight_column")
Out[10]:
col1 weight_column
0 9 0.5
1 8 0.4
2 7 0.1
[3 rows x 2 columns]
```
### String methods enhancements[#](#string-met... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
1c35c5a8-d593-5079-859a-e40fdde82b14 | changelog | pandas | pandas_whatsnew | 0.16.1 | 8 | One special case for the `.str` accessor on `Index` is that if a string method returns `bool`, the `.str` accessor
will return a `np.array` instead of a boolean `Index` ([GH 8875](https://github.com/pandas-dev/pandas/issues/8875)). This enables the following expression
to work naturally:
```None
In [13]: idx... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
5172eb0b-a9db-5b5c-8921-8eab10392c51 | changelog | pandas | pandas_whatsnew | 0.16.1 | 9 | * The following new methods are accessible via `.str` accessor to apply the function to each values. ([GH 9766](https://github.com/pandas-dev/pandas/issues/9766), [GH 9773](https://github.com/pandas-dev/pandas/issues/9773), [GH 10031](https://github.com/pandas-dev/pandas/issues/10031), [GH 10045](https://github.com/pan... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
dcc47397-3d2c-5115-8ab9-751c3df37526 | changelog | pandas | pandas_whatsnew | 0.16.1 | 10 | In [20]: s.str.split(",", expand=True)
Out[20]:
0 1
0 a b
1 a c
2 b c
[3 rows x 2 columns]
In [21]: idx = pd.Index(["a,b", "a,c", "b,c"])
# return Index
In [22]: idx.str.split(",")
Out[22]: Index([['a', 'b'], ['a', 'c'], ['b', 'c']], dtype='object')
# return MultiIndex
In [23]: ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
9aacf5b2-4e49-557f-b5e6-a6b014b07f28 | changelog | pandas | pandas_whatsnew | 0.16.1 | 11 | Out[24]: Timestamp('2014-08-01 10:00:00')
In [25]: pd.Timestamp("2014-08-01 07:00") + pd.tseries.offsets.BusinessHour()
Out[25]: Timestamp('2014-08-01 10:00:00')
In [26]: pd.Timestamp("2014-08-01 16:30") + pd.tseries.offsets.BusinessHour()
Out[26]: Timestamp('2014-08-04 09:30:00')
```
* `DataFrame.diff` n... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.16.1.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.