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 |
|---|---|---|---|---|---|---|---|
2c51543a-f86f-5e4a-a6bd-d8c84fffa154 | changelog | pandas | pandas_whatsnew | 0.17.0 | 63 | * Bug in `pd.concat` with `axis=0` when column is of dtype `category` ([GH 10177](https://github.com/pandas-dev/pandas/issues/10177))
* Bug in `read_msgpack` where input type is not always checked ([GH 10369](https://github.com/pandas-dev/pandas/issues/10369), [GH 10630](https://github.com/pandas-dev/pandas/issues/1063... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
79fed654-4754-51f3-b6ba-30f22208ad9a | changelog | pandas | pandas_whatsnew | 0.17.0 | 64 | * Bug in `Series.plot(kind='hist')` Y Label not informative ([GH 10485](https://github.com/pandas-dev/pandas/issues/10485))
* Bug in `read_csv` when using a converter which generates a `uint8` type ([GH 9266](https://github.com/pandas-dev/pandas/issues/9266))
* Bug causes memory leak in time-series line and area plot (... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
5f98d842-eb8b-5b68-b78b-1a496602e880 | changelog | pandas | pandas_whatsnew | 0.17.0 | 65 | * Bug in `DataFrame.plot` raises `ValueError` when color name is specified by multiple characters ([GH 10387](https://github.com/pandas-dev/pandas/issues/10387))
* Bug in left and right `align` of `Series` with `MultiIndex` may be inverted ([GH 10665](https://github.com/pandas-dev/pandas/issues/10665))
* Bug in left an... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
bfb09c04-e369-5f00-b8a4-7b0b6944ea7f | changelog | pandas | pandas_whatsnew | 0.17.0 | 66 | * Bug in `read_csv` with `engine='c'`: EOF preceded by a comment, blank line, etc. was not handled correctly ([GH 10728](https://github.com/pandas-dev/pandas/issues/10728), [GH 10548](https://github.com/pandas-dev/pandas/issues/10548))
* Reading “famafrench” data via `DataReader` results in HTTP 404 error because of th... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
50b84697-c844-573c-a8f6-7dad94790416 | changelog | pandas | pandas_whatsnew | 0.17.0 | 67 | * Bug in `Index.take` may add unnecessary `freq` attribute ([GH 10791](https://github.com/pandas-dev/pandas/issues/10791))
* Bug in `merge` with empty `DataFrame` may raise `IndexError` ([GH 10824](https://github.com/pandas-dev/pandas/issues/10824))
* Bug in `to_latex` where unexpected keyword argument for some documen... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
375a4591-b100-555f-86cf-bcc0f73ff9e6 | changelog | pandas | pandas_whatsnew | 0.17.0 | 68 | * Bug in `pd.DataFrame` when constructing an empty DataFrame with a string dtype ([GH 9428](https://github.com/pandas-dev/pandas/issues/9428))
* Bug in `pd.DataFrame.diff` when DataFrame is not consolidated ([GH 10907](https://github.com/pandas-dev/pandas/issues/10907))
* Bug in `pd.unique` for arrays with the `datetim... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
96878bb3-5f29-5ee9-b42d-073ea5a68c94 | changelog | pandas | pandas_whatsnew | 0.17.0 | 69 | * Bug in `PeriodIndex.order` reset freq ([GH 10295](https://github.com/pandas-dev/pandas/issues/10295))
* Bug in `date_range` when `freq` divides `end` as nanos ([GH 10885](https://github.com/pandas-dev/pandas/issues/10885))
* Bug in `iloc` allowing memory outside bounds of a Series to be accessed with negative integer... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
05952099-e057-5f5b-9063-46653a5bfdd4 | changelog | pandas | pandas_whatsnew | 0.17.0 | 70 | * Bug in `DataFrame.where` when handling Series slicing ([GH 10218](https://github.com/pandas-dev/pandas/issues/10218), [GH 9558](https://github.com/pandas-dev/pandas/issues/9558))
* Bug where `pd.read_gbq` throws `ValueError` when Bigquery returns zero rows ([GH 10273](https://github.com/pandas-dev/pandas/issues/10273... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
517aa8df-3aab-5dbb-9c47-af406870fa01 | changelog | pandas | pandas_whatsnew | 0.17.0 | 71 | * Bug when constructing `DataFrame` where passing a dictionary with only scalar values and specifying columns did not raise an error ([GH 10856](https://github.com/pandas-dev/pandas/issues/10856))
* Bug in `.var()` causing roundoff errors for highly similar values ([GH 10242](https://github.com/pandas-dev/pandas/issues... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
30fdd81e-b07c-5f51-bb10-3153dcf7e362 | changelog | pandas | pandas_whatsnew | 0.17.0 | 72 | * Bug in `Index` dtype may not applied properly ([GH 11017](https://github.com/pandas-dev/pandas/issues/11017))
* Bug in `io.gbq` when testing for minimum google api client version ([GH 10652](https://github.com/pandas-dev/pandas/issues/10652))
* Bug in `DataFrame` construction from nested `dict` with `timedelta` keys ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
6c0eeb15-813f-5e20-8d7f-64f26b692cfa | changelog | pandas | pandas_whatsnew | 0.17.0 | 73 | ## Contributors[#](#contributors "Link to this heading")
A total of 112 people contributed patches to this release. People with a
“+” by their names contributed a patch for the first time.
* Alex Rothberg
* Andrea Bedini +
* Andrew Rosenfeld
* Andy Hayden
* Andy Li +
* Anthonios Partheniou +
* Artemy Kolchinsky
* Ber... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
d6214eda-09f7-5866-b6d3-ec873bd633b3 | changelog | pandas | pandas_whatsnew | 0.17.0 | 74 | * Karrie Kehoe +
* Kelsey Jordahl
* Kerby Shedden
* Kevin Sheppard
* Lars Buitinck
* Leif Johnson +
* Luis Ortiz +
* Mac +
* Matt Gambogi +
* Matt Savoie +
* Matthew Gilbert +
* Maximilian Roos +
* Michelangelo D’Agostino +
* Mortada Mehyar
* Nick Eubank
* Nipun Batra
* Ondřej Čertík
* Phillip Cloud
* Pratap Vardhan +
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
dd2c1316-f47c-5edb-a27c-b30813236af6 | changelog | pandas | pandas_whatsnew | 0.17.0 | 75 | * springcoil +
* terrytangyuan +
* tzinckgraf +
| large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.0.md |
a764a342-8f3e-5bf1-9a3c-f515d9c68a6a | changelog | pandas | pandas_whatsnew | 0.17.1 | 0 | # What's new in pandas 0.17.1
Source: https://pandas.pydata.org/docs/whatsnew/v0.17.1.html
# Version 0.17.1 (November 21, 2015)[#](#version-0-17-1-november-21-2015 "Link to this heading")
Note
We are proud to announce that *pandas* has become a sponsored project of the ([NumFOCUS organization](http://www.numfocus.o... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
234fc247-ad3e-5abf-9990-2a373329ca3f | changelog | pandas | pandas_whatsnew | 0.17.1 | 1 | * Fixed regression in `DataFrame.drop_duplicates` from 0.16.2, causing incorrect results on integer values ([GH 11376](https://github.com/pandas-dev/pandas/issues/11376))
What’s new in v0.17.1
* [New features](#new-features)
+ [Conditional HTML formatting](#conditional-html-formatting)
* [Enhancements](#enhancemen... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
d6be5dac-5455-59eb-a028-33e252f55480 | changelog | pandas | pandas_whatsnew | 0.17.1 | 2 | The styling is accomplished with HTML and CSS.
Accesses the styler class with the [`pandas.DataFrame.style`](../reference/api/pandas.DataFrame.style.html#pandas.DataFrame.style "pandas.DataFrame.style"), attribute,
an instance of [`Styler`](../reference/api/pandas.io.formats.style.Styler.html#pandas.io.formats.style.St... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
83909ce5-9952-55df-813d-ed7d715a0de5 | changelog | pandas | pandas_whatsnew | 0.17.1 | 3 | | 4 0.737369 1.490732 -0.935834 1.175829 -1.253881 | | | | | |
| 5 -0.637752 0.907105 -1.428681 -0.140069 -0.861755 | | | | | |
| 6 -0.255619 -2.798589 -1.771533 -0.699877 0.927462 | | | | | |
| 7 -0.173636 0.002846 0.688223 -0.879536 0.283627 | | | | | |
| 8 -0.805367 -1.727669 -0.3909 0.573806 0.338589 | | | | | |
| ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
2fed006c-88f5-56ae-856b-3fa49b308e45 | changelog | pandas | pandas_whatsnew | 0.17.1 | 4 | * Support for `compression` (gzip/bz2) in [`pandas.DataFrame.to_csv()`](../reference/api/pandas.DataFrame.to_csv.html#pandas.DataFrame.to_csv "pandas.DataFrame.to_csv") ([GH 7615](https://github.com/pandas-dev/pandas/issues/7615))
* `pd.read_*` functions can now also accept [`pathlib.Path`](https://docs.python.org/3/li... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
187a8952-a1af-506a-9e89-59568960ee87 | changelog | pandas | pandas_whatsnew | 0.17.1 | 5 | * `DataFrame.itertuples()` now returns `namedtuple` objects, when possible. ([GH 11269](https://github.com/pandas-dev/pandas/issues/11269), [GH 11625](https://github.com/pandas-dev/pandas/issues/11625))
* Added `axvlines_kwds` to parallel coordinates plot ([GH 10709](https://github.com/pandas-dev/pandas/issues/10709))
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
51b80c92-4ae5-5be6-be67-0e5e987ba08d | changelog | pandas | pandas_whatsnew | 0.17.1 | 6 | 1 B 1000 non-null category
dtypes: category(1), object(1)
memory usage: 9.0+ KB
# we have an accurate memory assessment (but can be expensive to compute this)
In [7]: df.info(memory_usage="deep")
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 1000 entries, 0 to 999
Data columns (total 2 c... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
c273b1a4-c7b2-5020-bbb7-6d0c59ba78b7 | changelog | pandas | pandas_whatsnew | 0.17.1 | 7 | In [9]: s = pd.Series(list("aabb")).astype("category")
In [10]: s
Out[10]:
0 a
1 a
2 b
3 b
Length: 4, dtype: category
Categories (2, object): ['a', 'b']
In [11]: s.str.contains("a")
Out[11]:
0 True
1 True
2 False
3 False
Length: 4, dtype: bool
In [12]: da... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
9107bee3-426b-5bbb-9d5e-33118b419310 | changelog | pandas | pandas_whatsnew | 0.17.1 | 8 | * Implement export of `datetime64[ns, tz]` dtypes with a fixed HDF5 store ([GH 11411](https://github.com/pandas-dev/pandas/issues/11411))
* Pretty printing sets (e.g. in DataFrame cells) now uses set literal syntax (`{x, y}`) instead of
Legacy Python syntax (`set([x, y])`) ([GH 11215](https://github.com/pandas-dev/pa... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
7cab928b-a266-5ea8-a195-073139944583 | changelog | pandas | pandas_whatsnew | 0.17.1 | 9 | * Indexing with a null key will raise a `TypeError`, instead of a `ValueError` ([GH 11356](https://github.com/pandas-dev/pandas/issues/11356))
* `Series.ptp` will now ignore missing values by default ([GH 11163](https://github.com/pandas-dev/pandas/issues/11163))
### Deprecations[#](#deprecations "Link to this heading... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
a84c11ba-b3e7-5f4f-8f2e-4f8c5a9198d8 | changelog | pandas | pandas_whatsnew | 0.17.1 | 10 | * Release the GIL on most datetime field operations (e.g. `DatetimeIndex.year`, `Series.dt.year`), normalization, and conversion to and from `Period`, `DatetimeIndex.to_period` and `PeriodIndex.to_timestamp` ([GH 11263](https://github.com/pandas-dev/pandas/issues/11263))
* Release the GIL on some rolling algos: `rollin... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
64d686d5-5149-5768-82ae-15df4afaff7f | changelog | pandas | pandas_whatsnew | 0.17.1 | 11 | * Performance improvement in `Categorical.remove_unused_categories`, ([GH 11643](https://github.com/pandas-dev/pandas/issues/11643)).
* Improved performance of `Series` constructor with no data and `DatetimeIndex` ([GH 11433](https://github.com/pandas-dev/pandas/issues/11433))
* Improved performance of `shift`, `cumpro... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
8096d0b1-961e-56ba-963f-c6161a5466c1 | changelog | pandas | pandas_whatsnew | 0.17.1 | 12 | * Incorrectly distributed .c file in the build on `PyPi` when reading a csv of floats and passing `na_values=<a scalar>` would show an exception ([GH 11374](https://github.com/pandas-dev/pandas/issues/11374))
* Bug in `.to_latex()` output broken when the index has a name ([GH 10660](https://github.com/pandas-dev/pandas... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
8adfff7b-521c-50db-a398-ca26d5124b32 | changelog | pandas | pandas_whatsnew | 0.17.1 | 13 | * Prevent adding new attributes to the accessors `.str`, `.dt` and `.cat`. Retrieving such
a value was not possible, so error out on setting it. ([GH 10673](https://github.com/pandas-dev/pandas/issues/10673))
* Bug in tz-conversions with an ambiguous time and `.dt` accessors ([GH 11295](https://github.com/pandas-dev/... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
c0c761eb-fac6-54d7-9102-498af147d790 | changelog | pandas | pandas_whatsnew | 0.17.1 | 14 | * Bug in list-like indexing with a mixed-integer Index ([GH 11320](https://github.com/pandas-dev/pandas/issues/11320))
* Bug in `pivot_table` with `margins=True` when indexes are of `Categorical` dtype ([GH 10993](https://github.com/pandas-dev/pandas/issues/10993))
* Bug in `DataFrame.plot` cannot use hex strings color... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
ce608229-b467-588d-a546-eebdc4ecb3db | changelog | pandas | pandas_whatsnew | 0.17.1 | 15 | * Bug in `DataFrame.pct_change()` not propagating `axis` keyword on `.fillna` method ([GH 11150](https://github.com/pandas-dev/pandas/issues/11150))
* Bug in `.to_csv()` when a mix of integer and string column names are passed as the `columns` parameter ([GH 11637](https://github.com/pandas-dev/pandas/issues/11637))
* ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
55c0b0c8-a580-5c55-b742-3f4f0911f52e | changelog | pandas | pandas_whatsnew | 0.17.1 | 16 | * Bug in `holiday.dates` where observance rules could not be applied to holiday and doc enhancement ([GH 11477](https://github.com/pandas-dev/pandas/issues/11477), [GH 11533](https://github.com/pandas-dev/pandas/issues/11533))
* Fix plotting issues when having plain `Axes` instances instead of `SubplotAxes` ([GH 11520]... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
c8aa6fb8-283e-5ebc-b2eb-be73f1d82446 | changelog | pandas | pandas_whatsnew | 0.17.1 | 17 | * Bugs in `to_excel` with duplicate columns ([GH 11007](https://github.com/pandas-dev/pandas/issues/11007), [GH 10982](https://github.com/pandas-dev/pandas/issues/10982), [GH 10970](https://github.com/pandas-dev/pandas/issues/10970))
* Fixed a bug that prevented the construction of an empty series of dtype `datetime64[... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
28d7afa9-08d7-5266-8d35-9437b4d8b823 | changelog | pandas | pandas_whatsnew | 0.17.1 | 18 | * Bug in the link-time error caused by C `inline` functions on FreeBSD 10+ (with `clang`) ([GH 10510](https://github.com/pandas-dev/pandas/issues/10510))
* Bug in `DataFrame.to_csv` in passing through arguments for formatting `MultiIndexes`, including `date_format` ([GH 7791](https://github.com/pandas-dev/pandas/issues... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
d42bddc4-3bcb-5260-8be2-89c99d4aa77a | changelog | pandas | pandas_whatsnew | 0.17.1 | 19 | * Bug in `DataFrame.to_sparse()` loses column names for MultiIndexes ([GH 11600](https://github.com/pandas-dev/pandas/issues/11600))
* Bug in `DataFrame.round()` with non-unique column index producing a Fatal Python error ([GH 11611](https://github.com/pandas-dev/pandas/issues/11611))
* Bug in `DataFrame.round()` with ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
f930b0ab-1f29-5bbd-9003-b25fce503696 | changelog | pandas | pandas_whatsnew | 0.17.1 | 20 | * Joris Van den Bossche
* K.-Michael Aye
* Ka Wo Chen
* Loïc Séguin-C +
* Luo Yicheng +
* Magnus Jöud +
* Manuel Leonhardt +
* Matthew Gilbert
* Maximilian Roos
* Michael +
* Nicholas Stahl +
* Nicolas Bonnotte +
* Pastafarianist +
* Petra Chong +
* Phil Schaf +
* Philipp A +
* Rob deCarvalho +
* Roman Khomenko +
* Rém... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.17.1.md |
52472f66-25ca-5dbe-bed4-3f9195a311dd | changelog | pandas | pandas_whatsnew | 0.18.0 | 0 | # What's new in pandas 0.18.0
Source: https://pandas.pydata.org/docs/whatsnew/v0.18.0.html
# Version 0.18.0 (March 13, 2016)[#](#version-0-18-0-march-13-2016 "Link to this heading")
This is a major release from 0.17.1 and includes a small number of API changes, several new features,
enhancements, and performance imp... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
cac7491f-ea38-5960-9ff0-6559f6c7ed8d | changelog | pandas | pandas_whatsnew | 0.18.0 | 1 | similar to `.groupby`, see [here](#whatsnew-0180-enhancements-moments).
* Adding support for a `RangeIndex` as a specialized form of the `Int64Index`
for memory savings, see [here](#whatsnew-0180-enhancements-rangeindex).
* API breaking change to the `.resample` method to make it more `.groupby`
like, see [here](... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
5a8dd737-f337-5fb9-9db8-2c6b18ef011c | changelog | pandas | pandas_whatsnew | 0.18.0 | 2 | and [.str.cat() method](#whatsnew-0180-enhancements-strcat).
* `pd.test()` top-level nose test runner is available ([GH 4327](https://github.com/pandas-dev/pandas/issues/4327)).
Check the [API Changes](#whatsnew-0180-api-breaking) and [deprecations](#whatsnew-0180-deprecations) before updating.
What’s new in v0.18.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
b146a638-b076-5e68-b8a1-75a405078440 | changelog | pandas | pandas_whatsnew | 0.18.0 | 3 | + [`pd.read_sas()` changes](#pd-read-sas-changes)
+ [Other enhancements](#other-enhancements)
* [Backwards incompatible API changes](#backwards-incompatible-api-changes)
+ [NaT and Timedelta operations](#nat-and-timedelta-operations)
+ [Changes to msgpack](#changes-to-msgpack)
+ [Signature change for .rank](... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
b8ec453d-44aa-5159-bda3-c6f54b88605a | changelog | pandas | pandas_whatsnew | 0.18.0 | 4 | * [Contributors](#contributors)
## New features[#](#new-features "Link to this heading")
### Window functions are now methods[#](#window-functions-are-now-methods "Link to this heading")
Window functions have been refactored to be methods on `Series/DataFrame` objects, rather than top-level functions, which are now ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
2cbbf084-30dd-542f-b968-ea02605921d4 | changelog | pandas | pandas_whatsnew | 0.18.0 | 5 | FutureWarning: pd.rolling_mean is deprecated for DataFrame and will be removed in a future version, replace with
DataFrame.rolling(window=3,center=False).mean()
Out[8]:
A B
0 NaN NaN
1 NaN NaN
2 1 0.237722
3 2 -0.023640
4 3 0.133155
5 4 -0.048693
6 5 0... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
ee7ad6c9-60a5-57bb-9429-1256ab12f838 | changelog | pandas | pandas_whatsnew | 0.18.0 | 6 | A B
0 NaN NaN
1 NaN NaN
2 1.0 0.237722
3 2.0 -0.023640
4 3.0 0.133155
5 4.0 -0.048693
6 5.0 0.342054
7 6.0 0.370076
8 7.0 0.079587
9 8.0 -0.954504
[10 rows x 2 columns]
```
They provide getitem accessors
```None
In [7]: r['A'].mean()
Out[7]:
0 NaN
1 NaN
2 1.0
3 2.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
3d8d5059-07dd-5eb0-8907-e4909b2f8acf | changelog | pandas | pandas_whatsnew | 0.18.0 | 7 | ### Changes to rename[#](#changes-to-rename "Link to this heading")
`Series.rename` and `NDFrame.rename_axis` can now take a scalar or list-like
argument for altering the Series or axis *name*, in addition to their old behaviors of altering labels. ([GH 9494](https://github.com/pandas-dev/pandas/issues/9494), [GH 1196... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
6db502ce-0fb9-5a03-9196-4b9f70f8b4c8 | changelog | pandas | pandas_whatsnew | 0.18.0 | 8 | The new functionality works well in method chains. Previously these methods only accepted functions or dicts mapping a *label* to a new label.
This continues to work as before for function or dict-like values.
### Range Index[#](#range-index "Link to this heading")
A `RangeIndex` has been added to the `Int64Index` su... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
0183be17-01f3-585d-b4d8-7addc93410b3 | changelog | pandas | pandas_whatsnew | 0.18.0 | 9 | This will now be the default constructed index for `NDFrame` objects, rather than previous an `Int64Index`. ([GH 939](https://github.com/pandas-dev/pandas/issues/939), [GH 12070](https://github.com/pandas-dev/pandas/issues/12070), [GH 12071](https://github.com/pandas-dev/pandas/issues/12071), [GH 12109](https://github.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
b2bd9c8f-2a0a-5034-a479-e12ed7de0ae3 | changelog | pandas | pandas_whatsnew | 0.18.0 | 10 | ### Changes to str.extract[#](#changes-to-str-extract "Link to this heading")
The [.str.extract](../user_guide/text.html#text-extract) method takes a regular
expression with capture groups, finds the first match in each subject
string, and returns the contents of the capture groups
([GH 11386](https://github.com/panda... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
241b2160-4d01-58a8-85c8-13c47bb27dd1 | changelog | pandas | pandas_whatsnew | 0.18.0 | 11 | but in a future version of pandas this will be changed to expand=True (return DataFrame)
Out[1]:
0 1
1 2
2 NaN
dtype: object
```
Extracting a regular expression with one group returns a Series if
`expand=False`.
```None
In [16]: pd.Series(['a1', 'b2', 'c3']).str.extract(r'[ab](\d)', expand=False)
Out[16... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
00349136-f520-57f4-b32f-d7a3433a702f | changelog | pandas | pandas_whatsnew | 0.18.0 | 12 | It returns a `DataFrame` with one column if `expand=True`.
```None
In [21]: s.index.str.extract("(?P<letter>[a-zA-Z])", expand=True)
Out[21]:
letter
0 A
1 B
2 C
[3 rows x 1 columns]
```
Calling on an `Index` with a regex with more than one capture group
raises `ValueError` if `expand=False`.
```No... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
db2b5b0c-2220-55ca-b975-5939d4567e12 | changelog | pandas | pandas_whatsnew | 0.18.0 | 13 | ### Addition of str.extractall[#](#addition-of-str-extractall "Link to this heading")
The [.str.extractall](../user_guide/text.html#text-extractall) method was added
([GH 11386](https://github.com/pandas-dev/pandas/issues/11386)). Unlike `extract`, which returns only the first
match.
```None
In [23]: s = pd.Series(["... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
cbc2f89d-ab6b-5ec4-ae4f-ac96eb5543e7 | changelog | pandas | pandas_whatsnew | 0.18.0 | 14 | ### Changes to str.cat[#](#changes-to-str-cat "Link to this heading")
The method `.str.cat()` concatenates the members of a `Series`. Before, if `NaN` values were present in the Series, calling `.str.cat()` on it would return `NaN`, unlike the rest of the `Series.str.*` API. This behavior has been amended to ignore `N... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
b689a885-f5fa-515e-b9d7-7e813a035cb6 | changelog | pandas | pandas_whatsnew | 0.18.0 | 15 | ### Datetimelike rounding[#](#datetimelike-rounding "Link to this heading")
`DatetimeIndex`, `Timestamp`, `TimedeltaIndex`, `Timedelta` have gained the `.round()`, `.floor()` and `.ceil()` method for datetimelike rounding, flooring and ceiling. ([GH 4314](https://github.com/pandas-dev/pandas/issues/4314), [GH 11963](h... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
57b94ebb-fcaa-5093-944b-6cd497a13965 | changelog | pandas | pandas_whatsnew | 0.18.0 | 16 | Tz-aware are rounded, floored and ceiled in local times
```None
In [34]: dr = dr.tz_localize('US/Eastern')
In [35]: dr
Out[35]:
DatetimeIndex(['2013-01-01 09:12:56.123400-05:00',
'2013-01-02 09:12:56.123400-05:00',
'2013-01-03 09:12:56.123400-05:00'],
dtype='datetime64[ns,... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
8d2f030c-6ab8-5171-ab3f-c391b31ed24c | changelog | pandas | pandas_whatsnew | 0.18.0 | 17 | In [40]: t[0]
Out[40]: Timedelta('1 days 02:13:00.000045')
In [41]: t[0].round('2h')
Out[41]: Timedelta('1 days 02:00:00')
```
In addition, `.round()`, `.floor()` and `.ceil()` will be available through the `.dt` accessor of `Series`.
```None
In [42]: s = pd.Series(dr)
In [43]: s
Out[43]:
0 2013-01-01 09:12:56.1... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
4e2e0c24-0ee5-592c-bea2-f8a0afb8ecfe | changelog | pandas | pandas_whatsnew | 0.18.0 | 18 | Previous behavior:
```None
In [2]: s = pd.Series([1, 2, 3], index=np.arange(3.))
In [3]: s
Out[3]:
0 1
1 2
2 3
dtype: int64
In [4]: s.index
Out[4]: Float64Index([0.0, 1.0, 2.0], dtype='float64')
In [5]: print(s.to_csv(path=None))
0,1
1,2
2,3
```
New behavior:
```None
In [45]: s = pd.Series([1, 2, 3], ind... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
5740b6ae-7149-5035-b64e-46af670487a5 | changelog | pandas | pandas_whatsnew | 0.18.0 | 19 | Out[7]:
a int64
b uint32
dtype: object
In [8]: ix = df['a'] == 1
In [9]: df.loc[ix, 'b'] = df.loc[ix, 'b']
In [11]: df.dtypes
Out[11]:
a int64
b int64
dtype: object
```
New behavior:
```None
In [49]: df = pd.DataFrame({'a': [0, 1, 1],
....: 'b': pd.Series([100, 200, 300], dtype='... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
02b632c6-4a4e-5578-86f9-dd3476ced149 | changelog | pandas | pandas_whatsnew | 0.18.0 | 20 | 4 8 1 2 3
10 4 5 6
8 12 7 8 9
In [7]: df.ix[4, 'c'] = np.array([0., 1.])
In [8]: df
Out[8]:
a b c
4 8 1 2 0
10 4 5 1
8 12 7 8 9
```
New behavior:
```None
In [54]: df = pd.DataFrame(np.array(range(1,10)).reshape(3,3),
....: columns=list('abc'),
....: ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
7c16a75e-1a8b-5eca-96c6-c24802db5a9e | changelog | pandas | pandas_whatsnew | 0.18.0 | 21 | a pandas-like interface for > 2 ndim. ([GH 11972](https://github.com/pandas-dev/pandas/issues/11972))
See the [xarray full-documentation here](http://xarray.pydata.org/en/stable/).
```None
In [1]: p = Panel(np.arange(2*3*4).reshape(2,3,4))
In [2]: p.to_xarray()
Out[2]:
<xarray.DataArray (items: 2, major_axis: 3, min... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
876895b2-6a0f-5718-9827-7dc6acd4fe92 | changelog | pandas | pandas_whatsnew | 0.18.0 | 22 | Note that this must be activated by setting the option `pd.display.latex.repr=True` ([GH 12182](https://github.com/pandas-dev/pandas/issues/12182))
For example, if you have a jupyter notebook you plan to convert to latex using nbconvert, place the statement `pd.display.latex.repr=True` in the first cell to have the co... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
83ccaafa-fba0-55a2-a736-ff4d1a2d207f | changelog | pandas | pandas_whatsnew | 0.18.0 | 23 | ### Other enhancements[#](#other-enhancements "Link to this heading")
* Handle truncated floats in SAS xport files ([GH 11713](https://github.com/pandas-dev/pandas/issues/11713))
* Added option to hide index in `Series.to_string` ([GH 11729](https://github.com/pandas-dev/pandas/issues/11729))
* `read_excel` now suppor... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
fcd4c6c9-e08b-5337-8bed-63b7b11df0be | changelog | pandas | pandas_whatsnew | 0.18.0 | 24 | * `Series` gained an `is_unique` attribute ([GH 11946](https://github.com/pandas-dev/pandas/issues/11946))
* `DataFrame.quantile` and `Series.quantile` now accept `interpolation` keyword ([GH 10174](https://github.com/pandas-dev/pandas/issues/10174)).
* Added `DataFrame.style.format` for more flexible formatting of cel... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
2680a4cf-e9b5-5e63-accb-34d457020055 | changelog | pandas | pandas_whatsnew | 0.18.0 | 25 | * `HDFStore` is now iterable: `for k in store` is equivalent to `for k in store.keys()` ([GH 12221](https://github.com/pandas-dev/pandas/issues/12221)).
* Add missing methods/fields to `.dt` for `Period` ([GH 8848](https://github.com/pandas-dev/pandas/issues/8848))
* The entire code base has been `PEP`-ified ([GH 12096... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
90bff42c-ee13-5350-a871-a1179cc6208b | changelog | pandas | pandas_whatsnew | 0.18.0 | 26 | * `DataFrame.head(0)` and `DataFrame.tail(0)` return empty frames, rather than `self`. ([GH 11937](https://github.com/pandas-dev/pandas/issues/11937))
* `Series.head(0)` and `Series.tail(0)` return empty series, rather than `self`. ([GH 11937](https://github.com/pandas-dev/pandas/issues/11937))
* `to_msgpack` and `read... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
7c0f1a7c-4ea4-5dd5-bf0d-019afa8685f8 | changelog | pandas | pandas_whatsnew | 0.18.0 | 27 | ### NaT and Timedelta operations[#](#nat-and-timedelta-operations "Link to this heading")
`NaT` and `Timedelta` have expanded arithmetic operations, which are extended to `Series`
arithmetic where applicable. Operations defined for `datetime64[ns]` or `timedelta64[ns]`
are now also defined for `NaT` ([GH 11564](https:... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
082ac0c6-accc-5a80-8922-d1493fbc14a1 | changelog | pandas | pandas_whatsnew | 0.18.0 | 28 | In [65]: pd.Timedelta('1s') + pd.Timedelta('1s')
Out[65]: Timedelta('0 days 00:00:02')
```
as opposed to
```None
In [3]: pd.Timestamp('19900315') + pd.Timestamp('19900315')
TypeError: unsupported operand type(s) for +: 'Timestamp' and 'Timestamp'
```
However, when wrapped in a `Series` whose `dtype` is `datetime64[n... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
ad135590-3bb4-542b-90ef-a0ca4cf4b060 | changelog | pandas | pandas_whatsnew | 0.18.0 | 29 | In [68]: ser = pd.Series(pd.timedelta_range('1 day', periods=3))
In [69]: ser
Out[69]:
0 1 days
1 2 days
2 3 days
Length: 3, dtype: timedelta64[ns]
In [70]: pd.Timestamp('2012-01-01') - ser
Out[70]:
0 2011-12-31
1 2011-12-30
2 2011-12-29
Length: 3, dtype: datetime64[ns]
```
`NaT.isoformat()` now return... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
6b0b564b-1798-5f3d-b88e-f15a7e66d33c | changelog | pandas | pandas_whatsnew | 0.18.0 | 30 | Bugs in `to_msgpack` and `read_msgpack` introduced in 0.17.0 and fixed in 0.18.0, caused files packed in Python 2 unreadable by Python 3 ([GH 12142](https://github.com/pandas-dev/pandas/issues/12142)). The following table describes the backward and forward compat of msgpacks.
Warning
| Packed with | Can be unpacked w... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
85ef9f55-c6c0-5a09-bf7f-667244166163 | changelog | pandas | pandas_whatsnew | 0.18.0 | 31 | ascending=True, pct=False)
Out[3]:
0 1
1 2
dtype: float64
In [4]: pd.DataFrame([0,1]).rank(axis=0, numeric_only=None,
method='average', na_option='keep',
ascending=True, pct=False)
Out[4]:
0
0 1
1 2
```
New sign... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
ab13ad29-db70-5728-9248-b820f32e9a82 | changelog | pandas | pandas_whatsnew | 0.18.0 | 32 | depending on the date when the `n` parameter was 0. ([GH 11406](https://github.com/pandas-dev/pandas/issues/11406))
The general semantics of anchored offsets for `n=0` is to not move the date
when it is an anchor point (e.g., a quarter start date), and otherwise roll
forward to the next anchor point.
```None
In [73]:... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
a1fe85bb-4ac6-56f4-81c1-ea0452609dcf | changelog | pandas | pandas_whatsnew | 0.18.0 | 33 | other anchored offsets like `MonthBegin` and `YearBegin`.
```None
In [77]: d = pd.Timestamp('2014-02-15')
In [78]: d + pd.offsets.QuarterBegin(n=0, startingMonth=2)
Out[78]: Timestamp('2014-05-01 00:00:00')
```
### Resample API[#](#resample-api "Link to this heading")
Like the change in the window functions API [ab... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
9fc190e3-40f9-514c-b654-68862ff41ae6 | changelog | pandas | pandas_whatsnew | 0.18.0 | 34 | ....: index=pd.date_range('2010-01-01 09:00:00',
....: periods=10, freq='s'))
....:
In [81]: df
Out[81]:
A B C D
2010-01-01 09:00:00 0.191519 0.622109 0.437728 0.785359
2010-01-01 09:00:01 0.7799... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
650763c9-5826-5843-87d6-cdf4f496a745 | changelog | pandas | pandas_whatsnew | 0.18.0 | 35 | ```None
In [6]: df.resample('2s')
Out[6]:
A B C D
2010-01-01 09:00:00 0.485748 0.447351 0.357096 0.793615
2010-01-01 09:00:02 0.820801 0.794317 0.364034 0.531096
2010-01-01 09:00:04 0.433985 0.314582 0.424104 0.625733
2010-01-01 09:00:06 0.624988 0.609738 ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
9a8fc6e2-902e-5464-b787-ca8118ca0a01 | changelog | pandas | pandas_whatsnew | 0.18.0 | 36 | In [83]: r
Out[83]: <pandas.core.resample.DatetimeIndexResampler object at 0x7f83e8af00a0>
```
#### Downsampling[#](#downsampling "Link to this heading")
You can then use this object to perform operations.
These are downsampling operations (going from a higher frequency to a lower one).
```None
In [84]: r.mean()
Out... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
5c5ebfeb-e732-5e4a-bb65-a43f1355f71d | changelog | pandas | pandas_whatsnew | 0.18.0 | 37 | 2010-01-01 09:00:06 1.249976 1.219477 1.266330 1.224904
2010-01-01 09:00:08 1.020940 1.068634 1.146402 1.613897
[5 rows x 4 columns]
```
Furthermore, resample now supports `getitem` operations to perform the resample on specific columns.
```None
In [86]: r[['A','C']].mean()
Out[86]:
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
f4a29d27-3d21-5e39-a756-6159ef27cc80 | changelog | pandas | pandas_whatsnew | 0.18.0 | 38 | Out[88]:
A B
mean sum mean sum
2010-01-01 09:00:00 0.485748 0.971495 0.447351 0.894701
2010-01-01 09:00:02 0.820801 1.641602 0.794317 1.588635
2010-01-01 09:00:04 0.433985 0.867969 0.314582 0.629165
2010-01-01... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
1024212d-3abb-5825-bf8a-a2d6a12d1dfa | changelog | pandas | pandas_whatsnew | 0.18.0 | 39 | In [6]: s.resample('M', fill_method='ffill')
Out[6]:
2010-03-31 0
2010-04-30 0
2010-05-31 0
2010-06-30 1
2010-07-31 1
2010-08-31 1
2010-09-30 2
2010-10-31 2
2010-11-30 2
2010-12-31 3
2011-01-31 3
2011-02-28 3
2011-03-31 4
Freq: M, dtype: int64
```
New API
```None
In [91]: s.resa... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
4ca4a7e6-036b-57a7-927f-112da0d45121 | changelog | pandas | pandas_whatsnew | 0.18.0 | 40 | #### Previous API will work but with deprecations[#](#previous-api-will-work-but-with-deprecations "Link to this heading")
Warning
This new API for resample includes some internal changes for the prior-to-0.18.0 API, to work with a deprecation warning in most cases, as the resample operation returns a deferred object... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
56469c07-5bff-5a1b-9cde-4850c1d11a82 | changelog | pandas | pandas_whatsnew | 0.18.0 | 41 | However, getting and assignment operations directly on a `Resampler` will raise a `ValueError`:
```None
In [7]: r.iloc[0] = 5
ValueError: .resample() is now a deferred operation
use .resample(...).mean() instead of .resample(...)
```
There is a situation where the new API can not perform all the operations when using... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
483d4811-808d-5f45-b2e5-bd7b717d8f53 | changelog | pandas | pandas_whatsnew | 0.18.0 | 42 | The good news is the return dimensions will differ between the new API and the old API, so this should loudly raise
an exception.
To replicate the original operation
```None
In [90]: df.resample('2s').mean().min()
Out[90]:
A 0.433985
B 0.314582
C 0.357096
D 0.531096
Length: 4, dtype: float64
```
### Cha... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
fa8ba118-2f83-5ce2-a333-b03a8bc1ca96 | changelog | pandas | pandas_whatsnew | 0.18.0 | 43 | This will change in a future version of pandas, use inplace=True to avoid this warning.
In [13]: df
Out[13]:
a b c
0 0.0 0 0.0
1 2.5 1 3.5
2 5.0 2 7.0
3 7.5 3 10.5
4 10.0 4 14.0
```
In version 0.18.0, a new `inplace` keyword was added to choose whether the
assignment should be done in... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
362f4b74-c5d8-5597-8436-3e0c7c8e70b5 | changelog | pandas | pandas_whatsnew | 0.18.0 | 44 | 3 7.5 3 10.5 7.5
4 10.0 4 14.0 10.0
[5 rows x 4 columns]
```
Warning
For backwards compatibility, `inplace` defaults to `True` if not specified.
This will change in a future version of pandas. If your code depends on an
inplace assignment you should update to explicitly set `inplace=True`
The `inplace` ke... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
1a333966-11a8-532b-9d76-8c837ed27675 | changelog | pandas | pandas_whatsnew | 0.18.0 | 45 | a b c d
3 7.5 3 10.5 7.5
4 10.0 4 14.0 10.0
[2 rows x 4 columns]
In [102]: df.eval("""
.....: e = d + a
.....: f = e - 22
.....: g = f / 2.0""", inplace=True)
.....:
In [103]: df
Out[103]:
a b c d e f g
3 7.5 3 10.5 7.5 15.0 -7.0 -3.5
4 10.0 4 ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
e71ae8b8-9012-503e-8dc1-286d904490f3 | changelog | pandas | pandas_whatsnew | 0.18.0 | 46 | In [2]: s.between_time('20150101 07:00:00','20150101 09:00:00')
ValueError: Cannot convert arg ['20150101 07:00:00'] to a time.
```
* `.memory_usage()` now includes values in the index, as does memory\_usage in `.info()` ([GH 11597](https://github.com/pandas-dev/pandas/issues/11597))
* `DataFrame.to_latex()` now ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
1fbb752e-05a5-509b-a1e2-7396bbe60f46 | changelog | pandas | pandas_whatsnew | 0.18.0 | 47 | * `DataFrame.unstack` and `Series.unstack` now take `fill_value` keyword to allow direct replacement of missing values when an unstack results in missing values in the resulting `DataFrame`. As an added benefit, specifying `fill_value` will preserve the data type of the original stacked data. ([GH 9746](https://github.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
6cc1eac5-c001-5a1f-ae70-8914a3812f1a | changelog | pandas | pandas_whatsnew | 0.18.0 | 48 | * `.to_latex` and `.to_html` gain a `decimal` parameter like `.to_csv`; the default is `'.'` ([GH 12031](https://github.com/pandas-dev/pandas/issues/12031))
* More helpful error message when constructing a `DataFrame` with empty data but with indices ([GH 8020](https://github.com/pandas-dev/pandas/issues/8020))
* `.des... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
3b049d48-e6e2-51cc-8c5e-69b2de54883a | changelog | pandas | pandas_whatsnew | 0.18.0 | 49 | ### Deprecations[#](#deprecations "Link to this heading")
* The functions `pd.rolling_*`, `pd.expanding_*`, and `pd.ewm*` are deprecated and replaced by the corresponding method call. Note that
the new suggested syntax includes all of the arguments (even if default) ([GH 11603](https://github.com/pandas-dev/pandas/i... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
187a8a10-dea1-5cfc-827f-cfc7f43bde4a | changelog | pandas | pandas_whatsnew | 0.18.0 | 50 | 2 0.5
dtype: float64
```
* The `freq` and `how` arguments to the `.rolling`, `.expanding`, and `.ewm` (new) functions are deprecated, and will be removed in a future version. You can simply resample the input prior to creating a window function. ([GH 11603](https://github.com/pandas-dev/pandas/... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
154a82ed-a37f-55dd-849f-fdcaf360dd9a | changelog | pandas | pandas_whatsnew | 0.18.0 | 51 | * `pandas.stats.ols`, `pandas.stats.plm` and `pandas.stats.var` routines are deprecated and will be removed in a future version ([GH 6077](https://github.com/pandas-dev/pandas/issues/6077))
* show a `FutureWarning` rather than a `DeprecationWarning` on using long-time deprecated syntax in `HDFStore.select`, where the `... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
b0f8482d-6c95-5888-a5c1-4d30782cb987 | changelog | pandas | pandas_whatsnew | 0.18.0 | 52 | In 0.18.0, this deprecation warning is removed and these will now raise a `TypeError`. ([GH 12165](https://github.com/pandas-dev/pandas/issues/12165), [GH 12333](https://github.com/pandas-dev/pandas/issues/12333))
```None
In [104]: s = pd.Series([1, 2, 3], index=[4, 5, 6])
In [105]: s
Out[105]:
4 1
5 2
6 3
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
8f00712b-cc97-59f2-a8d4-5d147ac21b1a | changelog | pandas | pandas_whatsnew | 0.18.0 | 53 | In [5]: s2.ix[1.0] = 10
FutureWarning: scalar indexers for index type Index should be integers and not floating point
In [6]: s2
Out[6]:
a 1
b 10
c 3
dtype: int64
```
New behavior:
For iloc, getting & setting via a float scalar will always raise.
```None
In [3]: s.iloc[2.0]
TypeError: cannot do label ind... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
bc54e07d-bcfc-57d7-9335-21e6998ef4ff | changelog | pandas | pandas_whatsnew | 0.18.0 | 54 | Positional setting with `.ix` and a float indexer will ADD this value to the index, rather than previously setting the value by position.
```None
In [3]: s2.ix[1.0] = 10
In [4]: s2
Out[4]:
a 1
b 2
c 3
1.0 10
dtype: int64
```
Slicing will also coerce integer-like floats to integers for a non-`Floa... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
cb884850-35b3-57a8-9dc5-a87ed1cb0056 | changelog | pandas | pandas_whatsnew | 0.18.0 | 55 | ### Removal of prior version deprecations/changes[#](#removal-of-prior-version-deprecations-changes "Link to this heading")
* Removal of `rolling_corr_pairwise` in favor of `.rolling().corr(pairwise=True)` ([GH 4950](https://github.com/pandas-dev/pandas/issues/4950))
* Removal of `expanding_corr_pairwise` in favor of ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
ddb4ad79-2acf-5486-b4ee-34535eb46a72 | changelog | pandas | pandas_whatsnew | 0.18.0 | 56 | * Removal of the `order` keyword from `.factorize()` ([GH 6930](https://github.com/pandas-dev/pandas/issues/6930))
## Performance improvements[#](#performance-improvements "Link to this heading")
* Improved performance of `andrews_curves` ([GH 11534](https://github.com/pandas-dev/pandas/issues/11534))
* Improved huge... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
30a3fb50-c491-5d6a-a286-543f988e3c1d | changelog | pandas | pandas_whatsnew | 0.18.0 | 57 | * Improved performance of ISO 8601 date parsing for dates without separators ([GH 11899](https://github.com/pandas-dev/pandas/issues/11899)), leading zeros ([GH 11871](https://github.com/pandas-dev/pandas/issues/11871)) and with white space preceding the time zone ([GH 9714](https://github.com/pandas-dev/pandas/issues/... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
1084a803-ec21-5755-97b8-df67c8a95ca6 | changelog | pandas | pandas_whatsnew | 0.18.0 | 58 | * Bug in consistency of passing nested dicts to `.groupby(...).agg(...)` ([GH 9052](https://github.com/pandas-dev/pandas/issues/9052))
* Accept unicode in `Timedelta` constructor ([GH 11995](https://github.com/pandas-dev/pandas/issues/11995))
* Bug in value label reading for `StataReader` when reading incrementally ([G... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
9154da14-69de-59a4-9829-c102f845dc14 | changelog | pandas | pandas_whatsnew | 0.18.0 | 59 | * Bug in getitem when the values of a `Series` were tz-aware ([GH 12089](https://github.com/pandas-dev/pandas/issues/12089))
* Bug in `Series.str.get_dummies` when one of the variables was ‘name’ ([GH 12180](https://github.com/pandas-dev/pandas/issues/12180))
* Bug in `pd.concat` while concatenating tz-aware NaT series... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
3135fdc5-8242-57d9-9e6d-1b71ace5e5ba | changelog | pandas | pandas_whatsnew | 0.18.0 | 60 | * Removed some compiler warnings ([GH 12471](https://github.com/pandas-dev/pandas/issues/12471))
* Work around compat issues with `boto` in python 3.5 ([GH 11915](https://github.com/pandas-dev/pandas/issues/11915))
* Bug in `NaT` subtraction from `Timestamp` or `DatetimeIndex` with timezones ([GH 11718](https://github.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
b7a0d0fd-ed0a-530a-9743-acec1cc5c158 | changelog | pandas | pandas_whatsnew | 0.18.0 | 61 | * Bug in `.copy` of datetime tz-aware objects ([GH 11794](https://github.com/pandas-dev/pandas/issues/11794))
* Bug in `Series.apply` and `Series.map` where `timedelta64` was not boxed ([GH 11349](https://github.com/pandas-dev/pandas/issues/11349))
* Bug in `DataFrame.set_index()` with tz-aware `Series` ([GH 12358](htt... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
9ee27285-07dd-58eb-9220-67cd8d86819e | changelog | pandas | pandas_whatsnew | 0.18.0 | 62 | * Bug in `from_msgpack` where `__contains__()` fails for columns of the unpacked `DataFrame`, if the `DataFrame` has object columns. ([GH 11880](https://github.com/pandas-dev/pandas/issues/11880))
* Bug in `.resample` on categorical data with `TimedeltaIndex` ([GH 12169](https://github.com/pandas-dev/pandas/issues/1216... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
9d304597-18be-51c9-857d-f58688f4165e | changelog | pandas | pandas_whatsnew | 0.18.0 | 63 | * Bug in the `groupby` `plot` method when using keyword arguments ([GH 11805](https://github.com/pandas-dev/pandas/issues/11805)).
* Bug in `DataFrame.duplicated` and `drop_duplicates` causing spurious matches when setting `keep=False` ([GH 11864](https://github.com/pandas-dev/pandas/issues/11864))
* Bug in `.loc` resu... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
e826a7aa-6bf4-5e51-9539-73220a80afdc | changelog | pandas | pandas_whatsnew | 0.18.0 | 64 | * Bug in rich comparison of `Timedelta` with a `numpy.array` of `Timedelta` that caused an infinite recursion ([GH 11835](https://github.com/pandas-dev/pandas/issues/11835))
* Bug in `DataFrame.round` dropping column index name ([GH 11986](https://github.com/pandas-dev/pandas/issues/11986))
* Bug in `df.replace` while ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
cb70ca12-e6e5-5d59-9fa5-40b6aa30d50d | changelog | pandas | pandas_whatsnew | 0.18.0 | 65 | * Bug in `read_sql` with `pymysql` connections failing to return chunked data ([GH 11522](https://github.com/pandas-dev/pandas/issues/11522))
* Bug in `.to_csv` ignoring formatting parameters `decimal`, `na_rep`, `float_format` for float indexes ([GH 11553](https://github.com/pandas-dev/pandas/issues/11553))
* Bug in `... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.