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 |
|---|---|---|---|---|---|---|---|
4c138107-c63b-5d1c-8410-03cdee4d3edb | changelog | pandas | pandas_whatsnew | 0.14.0 | 83 | * Bug in `Dataframe.set_index`, `reindex` and `pivot` don’t preserve `DatetimeIndex` and `PeriodIndex` attributes ([GH 3950](https://github.com/pandas-dev/pandas/issues/3950), [GH 5878](https://github.com/pandas-dev/pandas/issues/5878), [GH 6631](https://github.com/pandas-dev/pandas/issues/6631))
* Bug in `MultiIndex.g... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.0.md |
da356884-9673-5a3c-83f2-6fd7e14c65ce | changelog | pandas | pandas_whatsnew | 0.14.0 | 84 | * Fixed a bug with the `info` repr not honoring the `display.max_info_columns` setting ([GH 6939](https://github.com/pandas-dev/pandas/issues/6939))
* Bug `PeriodIndex` string slicing with out of bounds values ([GH 5407](https://github.com/pandas-dev/pandas/issues/5407))
* Fixed a memory error in the hashtable implemen... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.0.md |
b4d003f7-9a34-5a96-b019-81ece1782c60 | changelog | pandas | pandas_whatsnew | 0.14.0 | 85 | * Bug in setitem with a single value, MultiIndex and integer indices ([GH 7190](https://github.com/pandas-dev/pandas/issues/7190), [GH 7218](https://github.com/pandas-dev/pandas/issues/7218))
* Bug in expressions evaluation with reversed ops, showing in series-dataframe ops ([GH 7198](https://github.com/pandas-dev/pand... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.0.md |
a74046c9-fbc9-5be0-9b31-d66edb7d9812 | changelog | pandas | pandas_whatsnew | 0.14.0 | 86 | * Christopher Whelan
* Clark Fitzgerald
* DSM
* Dale Jung
* Dan Allan
* Dan Birken
* Daniel Waeber
* David Jung +
* David Stephens +
* Douglas McNeil
* Garrett Drapala
* Gouthaman Balaraman +
* Guillaume Poulin +
* Jacob Howard +
* Jacob Schaer
* Jason Sexauer +
* Jeff Reback
* Jeff Tratner
* Jeffrey Starr +
* John Dav... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.0.md |
7f611ce0-ffe3-54b7-8feb-3e3e0f4aab49 | changelog | pandas | pandas_whatsnew | 0.14.0 | 87 | * danielballan
* hshimizu77 +
* hugo +
* immerrr
* ischwabacher +
* jaimefrio +
* jreback
* jsexauer +
* kdiether +
* michaelws +
* mikebailey +
* ojdo +
* onesandzeroes +
* phaebz +
* ribonoous +
* rockg
* sinhrks +
* unutbu
* westurner
* y-p
* zach powers
| large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.0.md |
52a2b8e6-cbd0-5aae-a2ee-23a21a040d6d | changelog | pandas | pandas_whatsnew | 0.14.1 | 0 | # What's new in pandas 0.14.1
Source: https://pandas.pydata.org/docs/whatsnew/v0.14.1.html
# Version 0.14.1 (July 11, 2014)[#](#version-0-14-1-july-11-2014 "Link to this heading")
This is a minor release from 0.14.0 and includes a small number of API changes, several new features,
enhancements, and performance impro... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
9bea32ec-d517-5a45-a3bb-53f2ce56e8dd | changelog | pandas | pandas_whatsnew | 0.14.1 | 1 | text parser.
+ New documentation section on [Options and Settings](../user_guide/options.html#options).
+ Lots of bug fixes.
* [Enhancements](#whatsnew-0141-enhancements)
* [API Changes](#whatsnew-0141-api)
* [Performance Improvements](#whatsnew-0141-performance)
* [Experimental Changes](#whatsnew-0141-experime... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
7fd60e21-8855-5855-ae58-917921531ce6 | changelog | pandas | pandas_whatsnew | 0.14.1 | 2 | object isn’t a `Period` `False` is returned. ([GH 7376](https://github.com/pandas-dev/pandas/issues/7376))
* Previously, the behaviour on resetting the time or not in
`offsets.apply`, `rollforward` and `rollback` operations differed
between offsets. With the support of the `normalize` keyword for all offsets(see
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
0a3e08ec-e335-5007-af16-3acdfb97ceac | changelog | pandas | pandas_whatsnew | 0.14.1 | 3 | In [2]: d + offsets.MonthEnd(normalize=True)
Out[2]: Timestamp('2014-01-31 00:00:00')
```
Note that for the other offsets the default behaviour did not change.
* Add back `#N/A N/A` as a default NA value in text parsing, (regression from 0.12) ([GH 5521](https://github.com/pandas-dev/pandas/issues/5521))
* Rai... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
81671775-b7a4-571c-af90-8669ce89bdc5 | changelog | pandas | pandas_whatsnew | 0.14.1 | 4 | columns based on dtype ([GH 7316](https://github.com/pandas-dev/pandas/issues/7316)). See [the docs](../user_guide/basics.html#basics-selectdtypes).
* All `offsets` supports the `normalize` keyword to specify whether
`offsets.apply`, `rollforward` and `rollback` resets the time (hour,
minute, etc) or not (default... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
3f82da98-e60a-51a9-9547-c20c6d2a8ca3 | changelog | pandas | pandas_whatsnew | 0.14.1 | 5 | In particular, they allow for comments before file data begins ([GH 2685](https://github.com/pandas-dev/pandas/issues/2685))
* Add `NotImplementedError` for simultaneous use of `chunksize` and `nrows`
for read\_csv() ([GH 6774](https://github.com/pandas-dev/pandas/issues/6774)).
* Tests for basic reading of public ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
e52f35f9-9474-595a-a512-cb114e8cd811 | changelog | pandas | pandas_whatsnew | 0.14.1 | 6 | ...: "3/6/2012 00:00", periods=10, freq="D", tz="dateutil/Europe/London"
...: )
...:
In [4]: rng.tz
Out[4]: tzfile('/usr/share/zoneinfo/Europe/London')
```
See [the docs](../user_guide/timeseries.html#timeseries-timezone).
* Implemented `sem` (standard error of the mean) operation for `Ser... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
3342291e-034b-5cb4-bf9f-0e1cb98749f6 | changelog | pandas | pandas_whatsnew | 0.14.1 | 7 | non-unique labels along *item* axis (`index`, `columns` and `items`
respectively) ([GH 7370](https://github.com/pandas-dev/pandas/issues/7370)).
* Improved inference of datetime/timedelta with mixed null objects. Regression from 0.13.1 in interpretation of an object Index
with all null elements ([GH 7431](https:/... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
fd20ffd3-f7d2-577e-a8a3-191d901ce87c | changelog | pandas | pandas_whatsnew | 0.14.1 | 8 | * Regression in groupby aggregation of datetime64 dtypes ([GH 7555](https://github.com/pandas-dev/pandas/issues/7555))
* Improvements in `MultiIndex.from_product` for large iterables ([GH 7627](https://github.com/pandas-dev/pandas/issues/7627))
## Experimental[#](#experimental "Link to this heading")
* `pandas.io.dat... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
477ff5c7-3872-5b4c-b95f-ee629da99d14 | changelog | pandas | pandas_whatsnew | 0.14.1 | 9 | ## Bug fixes[#](#bug-fixes "Link to this heading")
* Bug in `DataFrame.where` with a symmetric shaped frame and a passed other of a DataFrame ([GH 7506](https://github.com/pandas-dev/pandas/issues/7506))
* Bug in Panel indexing with a MultiIndex axis ([GH 7516](https://github.com/pandas-dev/pandas/issues/7516))
* Regr... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
68486160-0673-52f8-b309-f4df8d541f19 | changelog | pandas | pandas_whatsnew | 0.14.1 | 10 | * Bug in `Series.get` with a boolean accessor ([GH 7407](https://github.com/pandas-dev/pandas/issues/7407))
* Bug in `value_counts` where `NaT` did not qualify as missing (`NaN`) ([GH 7423](https://github.com/pandas-dev/pandas/issues/7423))
* Bug in `to_timedelta` that accepted invalid units and misinterpreted ‘m/h’ ([... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
853ed418-702e-5e71-aafa-4c7ca53e2b85 | changelog | pandas | pandas_whatsnew | 0.14.1 | 11 | * Bug in plotting subplots with `DataFrame.boxplot` with `by` kw raises `ValueError` if the number of subplots exceeds 1 ([GH 7391](https://github.com/pandas-dev/pandas/issues/7391)).
* Bug in subplots displays `ticklabels` and `labels` in different rule ([GH 5897](https://github.com/pandas-dev/pandas/issues/5897))
* B... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
12ebc471-a8af-5216-92ad-2c1057265d4a | changelog | pandas | pandas_whatsnew | 0.14.1 | 12 | * Bug in `PeriodIndex.min/max` results in `int` ([GH 7609](https://github.com/pandas-dev/pandas/issues/7609))
* Bug in `resample` where `fill_method` was ignored if you passed `how` ([GH 2073](https://github.com/pandas-dev/pandas/issues/2073))
* Bug in `TimeGrouper` doesn’t exclude column specified by `key` ([GH 7227](... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
d73b5edd-88a0-57a6-9a9e-0994b9e60f03 | changelog | pandas | pandas_whatsnew | 0.14.1 | 13 | ([GH 7300](https://github.com/pandas-dev/pandas/issues/7300)).
* Bug in `Float64Index` which didn’t allow duplicates ([GH 7149](https://github.com/pandas-dev/pandas/issues/7149)).
* Bug in `DataFrame.replace()` where truthy values were being replaced
([GH 7140](https://github.com/pandas-dev/pandas/issues/7140)).
* ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
35a5bdf2-ea09-5f42-a42c-096d833ad31b | changelog | pandas | pandas_whatsnew | 0.14.1 | 14 | * Bug in broadcasting with `.div`, integer dtypes and divide-by-zero ([GH 7325](https://github.com/pandas-dev/pandas/issues/7325))
* Bug in `CustomBusinessDay.apply` raises `NameError` when `np.datetime64` object is passed ([GH 7196](https://github.com/pandas-dev/pandas/issues/7196))
* Bug in `MultiIndex.append`, `conc... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
8c3920da-f969-57e6-b725-d7254c52c9ec | changelog | pandas | pandas_whatsnew | 0.14.1 | 15 | * Bug where a string column name assignment to a `DataFrame` with a
`Float64Index` raised a `TypeError` during a call to `np.isnan`
([GH 7366](https://github.com/pandas-dev/pandas/issues/7366)).
* Bug where `NDFrame.replace()` didn’t correctly replace objects with
`Period` values ([GH 7379](https://github.com/pan... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
d13ab66d-42ad-53d8-b399-a0ea026a08dc | changelog | pandas | pandas_whatsnew | 0.14.1 | 16 | * Bug where bool objects were converted to `nan` in `convert_objects`
([GH 7416](https://github.com/pandas-dev/pandas/issues/7416)).
* Bug in `quantile` ignoring the axis keyword argument ([GH 7306](https://github.com/pandas-dev/pandas/issues/7306))
* Bug where `nanops._maybe_null_out` doesn’t work with complex numbe... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
d3b6d2af-f0a8-58a6-8d3d-1381d3faf62c | changelog | pandas | pandas_whatsnew | 0.14.1 | 17 | * Bug in `StataReader` when reading Stata 13 (117) files containing fixed width strings ([GH 7360](https://github.com/pandas-dev/pandas/issues/7360))
* Bug in `StataWriter` where encoding was ignored ([GH 7286](https://github.com/pandas-dev/pandas/issues/7286))
* Bug in `DatetimeIndex` comparison doesn’t handle `NaT` p... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
eb09facd-57fa-5e5b-8fad-99c975614920 | changelog | pandas | pandas_whatsnew | 0.14.1 | 18 | * Bug in `offsets.apply`, `rollforward` and `rollback` may return normal `datetime` ([GH 7502](https://github.com/pandas-dev/pandas/issues/7502))
* Bug in `resample` raises `ValueError` when target contains `NaT` ([GH 7227](https://github.com/pandas-dev/pandas/issues/7227))
* Bug in `Timestamp.tz_localize` resets `nano... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
1ff3ef1a-3f2a-585f-bf27-0aabe5d04107 | changelog | pandas | pandas_whatsnew | 0.14.1 | 19 | * Bug in `DatetimeIndex.freqstr` raises `AttributeError` when `freq` is `None` ([GH 7606](https://github.com/pandas-dev/pandas/issues/7606))
* Bug in `GroupBy.size` created by `TimeGrouper` raises `AttributeError` ([GH 7453](https://github.com/pandas-dev/pandas/issues/7453))
* Bug in single column bar plot is misaligne... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
b043a840-429b-54b8-b371-dcbcd23b9ebb | changelog | pandas | pandas_whatsnew | 0.14.1 | 20 | * Bug with `secondary_y` axis not being considered for timeseries `xlim` ([GH 3490](https://github.com/pandas-dev/pandas/issues/3490))
* Bug in `Float64Index` assignment with a non scalar indexer ([GH 7586](https://github.com/pandas-dev/pandas/issues/7586))
* Bug in `pandas.core.strings.str_contains` does not properly ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
35c82699-ec8a-5968-8343-15904ae0341c | changelog | pandas | pandas_whatsnew | 0.14.1 | 21 | * Bug in `.loc` performing fallback integer indexing with `object` dtype indices ([GH 7496](https://github.com/pandas-dev/pandas/issues/7496))
* Bug (regression) in `PeriodIndex` constructor when passed `Series` objects ([GH 7701](https://github.com/pandas-dev/pandas/issues/7701)).
## Contributors[#](#contributors "Li... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
1d029340-7c1d-5f55-819d-545c95c8ced1 | changelog | pandas | pandas_whatsnew | 0.14.1 | 22 | * dsm054 +
* helger +
* immerrr
* jaimefrio
* jreback
* lexual
* onesandzeroes
* rockg
* sanguineturtle +
* seth-p +
* sinhrks
* unknown
* yelite +
| large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.14.1.md |
b3644f2c-008d-5bca-b98f-819015f056d3 | changelog | pandas | pandas_whatsnew | 0.15.0 | 0 | # What's new in pandas 0.15.0
Source: https://pandas.pydata.org/docs/whatsnew/v0.15.0.html
# Version 0.15.0 (October 18, 2014)[#](#version-0-15-0-october-18-2014 "Link to this heading")
This is a major release from 0.14.1 and includes a small number of API changes, several new features,
enhancements, and performance... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
7e57405b-a0f0-5385-a802-cafae2b3ac95 | changelog | pandas | pandas_whatsnew | 0.15.0 | 1 | + New DataFrame default display for `df.info()` to include memory usage, see [Memory Usage](#whatsnew-0150-memory)
+ `read_csv` will now by default ignore blank lines when parsing, see [here](#whatsnew-0150-blanklines)
+ API change in using Indexes in set operations, see [here](#whatsnew-0150-index-set-ops)
+ E... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
63b271f5-cede-54a6-a027-3f5021ace22d | changelog | pandas | pandas_whatsnew | 0.15.0 | 2 | + Split out string methods documentation into [Working with Text Data](../user_guide/text.html#text)
* Check the [API Changes](#whatsnew-0150-api) and [deprecations](#whatsnew-0150-deprecations) before updating
* [Other Enhancements](#whatsnew-0150-enhancements)
* [Performance Improvements](#whatsnew-0150-performance... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
75cf67bf-0f34-5a9d-b120-1b721cfb087b | changelog | pandas | pandas_whatsnew | 0.15.0 | 3 | “codes/labels and levels” to “values and levels (now called ‘categories’)”. This can lead to subtle bugs. If you use
[`Categorical`](../reference/api/pandas.Categorical.html#pandas.Categorical "pandas.Categorical") directly, please audit your code before updating to this pandas
version and change it to use the [`from_c... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
5e19830f-a4a9-5088-a53c-19d922a74ead | changelog | pandas | pandas_whatsnew | 0.15.0 | 4 | methods to manipulate. Thanks to Jan Schulz for much of this API/implementation. ([GH 3943](https://github.com/pandas-dev/pandas/issues/3943), [GH 5313](https://github.com/pandas-dev/pandas/issues/5313), [GH 5314](https://github.com/pandas-dev/pandas/issues/5314),
[GH 7444](https://github.com/pandas-dev/pandas/issues/7... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
146bcb7a-7212-57f8-8d92-f56eb0086385 | changelog | pandas | pandas_whatsnew | 0.15.0 | 5 | [GH 8075](https://github.com/pandas-dev/pandas/issues/8075), [GH 8076](https://github.com/pandas-dev/pandas/issues/8076), [GH 8143](https://github.com/pandas-dev/pandas/issues/8143), [GH 8453](https://github.com/pandas-dev/pandas/issues/8453), [GH 8518](https://github.com/pandas-dev/pandas/issues/8518)).
For full docs... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
ba47207a-2d1b-58ac-b9e5-c8184777281e | changelog | pandas | pandas_whatsnew | 0.15.0 | 6 | In [5]: df["grade"] = df["grade"].cat.set_categories(["very bad", "bad",
...: "medium", "good", "very good"])
...:
In [6]: df["grade"]
Out[6]:
0 very good
1 good
2 good
3 very good
4 very good
5 very bad
Name: grade, Length: 6, dtype: c... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
2f8f3444-f861-5165-8f21-9b19dc7e3e6c | changelog | pandas | pandas_whatsnew | 0.15.0 | 7 | * Supplying “codes/labels and levels” to the [`Categorical`](../reference/api/pandas.Categorical.html#pandas.Categorical "pandas.Categorical") constructor is not
supported anymore. Supplying two arguments to the constructor is now interpreted as
“values and levels (now called ‘categories’)”. Please change your code... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
09ba8177-d75e-5ba7-b2cc-66293c234e45 | changelog | pandas | pandas_whatsnew | 0.15.0 | 8 | but allows compatibility with `np.timedelta64` types as well as a host of custom representation, parsing, and attributes.
This type is very similar to how `Timestamp` works for `datetimes`. It is a nice-API box for the type. See the [docs](../user_guide/timedeltas.html#timedeltas-timedeltas).
([GH 3009](https://github.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
5fcf824b-b7a7-5fdb-abda-586ef62d9bd8 | changelog | pandas | pandas_whatsnew | 0.15.0 | 9 | `Timedelta` scalars (and `TimedeltaIndex`) component fields are *not the same* as the component fields on a `datetime.timedelta` object. For example, `.seconds` on a `datetime.timedelta` object returns the total number of seconds combined between `hours`, `minutes` and `seconds`. In contrast, the pandas `Timedelta` bre... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
d97d4005-851f-51db-9c5e-ffa7c25633cc | changelog | pandas | pandas_whatsnew | 0.15.0 | 10 | It will now return a `TimedeltaIndex` for list-like input, `Series` for Series input, and `Timedelta` for scalar input.
The arguments to `pd.to_timedelta` are now `(arg,unit='ns',box=True,coerce=False)`, previously were `(arg,box=True,unit='ns')` as these are more logical.
Construct a scalar
```None
In [9]: pd.Timed... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
6cbc1f35-8f82-575c-8e75-86ca3f2f71af | changelog | pandas | pandas_whatsnew | 0.15.0 | 11 | Construct a `TimedeltaIndex`
```None
In [18]: pd.TimedeltaIndex(['1 days', '1 days, 00:00:05',
....: np.timedelta64(2, 'D'),
....: datetime.timedelta(days=2, seconds=2)])
....:
Out[18]:
TimedeltaIndex(['1 days 00:00:00', '1 days 00:00:05', '2 days 00:00:00',
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
6e5ac002-60b8-5373-90e4-628ed5aa9d96 | changelog | pandas | pandas_whatsnew | 0.15.0 | 12 | '1 days 06:00:00', '1 days 06:30:00', '1 days 07:00:00',
'1 days 07:30:00', '1 days 08:00:00', '1 days 08:30:00',
'1 days 09:00:00', '1 days 09:30:00', '1 days 10:00:00',
'1 days 10:30:00', '1 days 11:00:00', '1 days 11:30:00',
'1 days 12:0... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
16998c5a-f39f-56e9-9a9a-2a75a3d52f4c | changelog | pandas | pandas_whatsnew | 0.15.0 | 13 | You can now use a `TimedeltaIndex` as the index of a pandas object
```None
In [20]: s = pd.Series(np.arange(5),
....: index=pd.timedelta_range('1 days', periods=5, freq='s'))
....:
In [21]: s
Out[21]:
1 days 00:00:00 0
1 days 00:00:01 1
1 days 00:00:02 2
1 days 00:00:03 3
1 days 00:0... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
79e37a2e-3d19-59fc-8157-fa0adf8d0340 | changelog | pandas | pandas_whatsnew | 0.15.0 | 14 | [Timestamp('2013-01-01 00:00:00'),
Timestamp('2013-01-02 00:00:00'),
Timestamp('2013-01-03 00:00:00')]
In [28]: (dti + tdi).tolist()
Out[28]: [Timestamp('2013-01-02 00:00:00'), NaT, Timestamp('2013-01-05 00:00:00')]
In [29]: (dti - tdi).tolist()
Out[29]: [Timestamp('2012-12-31 00:00:00'), NaT, Timestamp('2013-01-01... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
44c46449-d1dd-58ee-be14-c0d440005ef6 | changelog | pandas | pandas_whatsnew | 0.15.0 | 15 | In [30]: dtypes = ['int64', 'float64', 'datetime64[ns]', 'timedelta64[ns]',
....: 'complex128', 'object', 'bool']
....:
In [31]: n = 5000
In [32]: data = {t: np.random.randint(100, size=n).astype(t) for t in dtypes}
In [33]: df = pd.DataFrame(data)
In [34]: df['categorical'] = df['object'].astype('... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
a3a20989-3059-5970-a092-a7d6cf60533b | changelog | pandas | pandas_whatsnew | 0.15.0 | 16 | dtypes: bool(1), category(1), complex128(1), datetime64[ns](1), float64(1), int64(1), object(1), timedelta64[ns](1)
memory usage: 288.2+ KB
```
Additionally [`memory_usage()`](../reference/api/pandas.DataFrame.memory_usage.html#pandas.DataFrame.memory_usage "pandas.DataFrame.memory_usage") is an available method for a... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
c63dba7e-f450-5b3d-a3c4-f83f016793e3 | changelog | pandas | pandas_whatsnew | 0.15.0 | 17 | This will return a Series, indexed like the existing Series. See the [docs](../user_guide/basics.html#basics-dt-accessors)
```None
# datetime
In [37]: s = pd.Series(pd.date_range('20130101 09:10:12', periods=4))
In [38]: s
Out[38]:
0 2013-01-01 09:10:12
1 2013-01-02 09:10:12
2 2013-01-03 09:10:12
3 2013-01-0... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
b3dc23c3-464e-55e0-b26f-17102eb6f841 | changelog | pandas | pandas_whatsnew | 0.15.0 | 18 | 3 2013-01-04 09:10:12-05:00
Length: 4, dtype: datetime64[ns, US/Eastern]
In [46]: stz.dt.tz
Out[46]: <DstTzInfo 'US/Eastern' LMT-1 day, 19:04:00 STD>
```
You can also chain these types of operations:
```None
In [47]: s.dt.tz_localize('UTC').dt.tz_convert('US/Eastern')
Out[47]:
0 2013-01-01 04:10:12-05:00
1 20... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
54b58353-2102-5045-bbd5-5a3f3b553c5e | changelog | pandas | pandas_whatsnew | 0.15.0 | 19 | 0 1 days 00:00:05
1 1 days 00:00:06
2 1 days 00:00:07
3 1 days 00:00:08
Length: 4, dtype: timedelta64[ns]
In [54]: s.dt.days
Out[54]:
0 1
1 1
2 1
3 1
Length: 4, dtype: int64
In [55]: s.dt.seconds
Out[55]:
0 5
1 6
2 7
3 8
Length: 4, dtype: int32
In [56]: s.dt.components
Out[56]:
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
bfab83b6-9024-5f89-b6d9-a5a0a1dc8939 | changelog | pandas | pandas_whatsnew | 0.15.0 | 20 | previously this resulted in `Exception` or `TypeError` ([GH 7812](https://github.com/pandas-dev/pandas/issues/7812))
```None
In [58]: ts = pd.Timestamp('2014-08-01 09:00', tz='US/Eastern')
In[59]: ts
Out[59]: Timestamp('2014-08-01 09:00:00-0400', tz='US/Eastern')
In [60]: ts.tz_localize(None)
Out[60]: ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
c407eecc-b421-55bc-b2ca-dcb5781891d8 | changelog | pandas | pandas_whatsnew | 0.15.0 | 21 | DatetimeIndex(['2014-08-01 09:00:00', '2014-08-01 10:00:00',
'2014-08-01 11:00:00', '2014-08-01 12:00:00',
'2014-08-01 13:00:00', '2014-08-01 14:00:00',
'2014-08-01 15:00:00', '2014-08-01 16:00:00',
'2014-08-01 17:00:00', '2014-08-01 18:00:00'],
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
dfeb845d-20bd-5338-8f13-57695c6ce08b | changelog | pandas | pandas_whatsnew | 0.15.0 | 22 | for localizing a specific level of a MultiIndex ([GH 7846](https://github.com/pandas-dev/pandas/issues/7846))
* `Timestamp.tz_localize` and `Timestamp.tz_convert` now raise `TypeError` in error cases, rather than `Exception` ([GH 8025](https://github.com/pandas-dev/pandas/issues/8025))
* a timeseries/index localized ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
92d21c0f-0d76-5397-bff1-df4ee7d50b4c | changelog | pandas | pandas_whatsnew | 0.15.0 | 23 | than raising. (This makes all rolling functions consistent in this behavior). ([GH 7766](https://github.com/pandas-dev/pandas/issues/7766))
Prior to 0.15.0
```None
In [57]: s = pd.Series([10, 11, 12, 13])
```
```None
In [15]: pd.rolling_min(s, window=10, min_periods=5)
ValueError: min_periods (5) mus... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
11666820-89e6-56cd-acac-b50653582500 | changelog | pandas | pandas_whatsnew | 0.15.0 | 24 | Now the final `(window-1)/2` entries of the result are calculated as if the input `arg` were followed
by `(window-1)/2` `NaN` values (or with shrinking windows, in the case of `rolling_apply()`).
([GH 7925](https://github.com/pandas-dev/pandas/issues/7925), [GH 8269](https://github.com/pandas-dev/pandas/issues/82... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
62819fad-1efc-5e42-9fcf-f9607dfe1bca | changelog | pandas | pandas_whatsnew | 0.15.0 | 25 | calculated without weighting (i.e. ‘boxcar’). See [the note on normalization](../user_guide/window.html#window-weighted) for further details. ([GH 7618](https://github.com/pandas-dev/pandas/issues/7618))
```None
In [58]: s = pd.Series([10.5, 8.8, 11.4, 9.7, 9.3])
```
Behavior prior to 0.15.0:
```None
I... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
23ad8252-3375-54bd-8c6c-8de7ced198ed | changelog | pandas | pandas_whatsnew | 0.15.0 | 26 | * Added optional `ddof` argument to `expanding_cov()` and `rolling_cov()`.
The default value of `1` is backwards-compatible. ([GH 8279](https://github.com/pandas-dev/pandas/issues/8279))
* Documented the `ddof` argument to `expanding_var()`, `expanding_std()`,
`rolling_var()`, and `rolling_std()`. These functions’ ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
350a86b3-26ad-539d-8e09-db1ab9b6a913 | changelog | pandas | pandas_whatsnew | 0.15.0 | 27 | Prior behavior (note values start at index `2`, which is `min_periods` after index `0`
(the index of the first non-empty value)):
```None
In [59]: s = pd.Series([1, None, None, None, 2, 3])
```
```None
In [51]: pd.ewma(s, com=3., min_periods=2)
Out[51]:
0 NaN
1 NaN
2 1.000000... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
b76bb68c-5dd8-534e-8475-b004727ee070 | changelog | pandas | pandas_whatsnew | 0.15.0 | 28 | See [Exponentially weighted moment functions](../user_guide/window.html#window-exponentially-weighted) for details. ([GH 7911](https://github.com/pandas-dev/pandas/issues/7911))
* `ewma()`, `ewmstd()`, `ewmvol()`, `ewmvar()`, `ewmcov()`, and `ewmcorr()`
now have an optional `ignore_na` argument.
When `ignore_na=F... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
cd79eeb8-083e-53d7-ac78-44d235abe365 | changelog | pandas | pandas_whatsnew | 0.15.0 | 29 | 1 1.000000
2 5.846154
dtype: float64
```
Warning
By default (`ignore_na=False`) the `ewm*()` functions’ weights calculation
in the presence of missing values is different than in pre-0.15.0 versions.
To reproduce the pre-0.15.0 calculation of weights in the presence of missing values
one must ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
dd4009ae-f516-5956-aedf-46db823ede0a | changelog | pandas | pandas_whatsnew | 0.15.0 | 30 | * Bug in `rolling_apply()` and `expanding_apply()` interpreting `min_periods=0` as `min_periods=1` ([GH 8080](https://github.com/pandas-dev/pandas/issues/8080))
* Bug in `expanding_std()` and `expanding_var()` for a single value producing a confusing error message ([GH 7900](https://github.com/pandas-dev/pandas/issues/... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
1ca27c78-137d-56c8-9bd8-18e448c11fe3 | changelog | pandas | pandas_whatsnew | 0.15.0 | 31 | For example, consider the following pre-0.15.0 results for `ewmvar(..., bias=False)`,
and the corresponding debiasing factors:
```None
In [60]: s = pd.Series([1., 2., 0., 4.])
```
```None
In [89]: pd.ewmvar(s, com=2., bias=False)
Out[89]:
0 -2.775558e-16
1 3.000000e-01
2 9.556787e-01
3... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
6dfbedaa-f453-52c1-9355-883106496aba | changelog | pandas | pandas_whatsnew | 0.15.0 | 32 | 3 1.425439
dtype: float64
```
See [Exponentially weighted moment functions](../user_guide/window.html#window-exponentially-weighted) for details. ([GH 7912](https://github.com/pandas-dev/pandas/issues/7912))
### Improvements in the SQL IO module[#](#improvements-in-the-sql-io-module "Link to this heading")... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
40230c96-727a-572d-9d99-bc416aa7c5a9 | changelog | pandas | pandas_whatsnew | 0.15.0 | 33 | * Added support for specifying a `schema` to read from/write to with `read_sql_table` and `to_sql` ([GH 7441](https://github.com/pandas-dev/pandas/issues/7441), [GH 7952](https://github.com/pandas-dev/pandas/issues/7952)).
For example:
```None
df.to_sql('table', engine, schema='other_schema') # noqa F821
pd.r... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
db4a4b65-1d46-5759-888f-3588c3790348 | changelog | pandas | pandas_whatsnew | 0.15.0 | 34 | “codes/labels and levels” to “values and levels (now called ‘categories’)”.
This can lead to subtle bugs. If you use [`Categorical`](../reference/api/pandas.Categorical.html#pandas.Categorical "pandas.Categorical") directly,
please audit your code by changing it to use the [`from_codes()`](../reference/api/pandas... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
50368648-46db-5892-8058-b543316cf7f0 | changelog | pandas | pandas_whatsnew | 0.15.0 | 35 | * Prior to 0.15.0 [`to_timedelta()`](../reference/api/pandas.to_timedelta.html#pandas.to_timedelta "pandas.to_timedelta") would return a `Series` for list-like/Series input,
and a `np.timedelta64` for scalar input. It will now return a `TimedeltaIndex` for
list-like input, `Series` for Series input, and `Timedelta`... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
04882277-1384-5e47-8c75-6db9fea7ccb6 | changelog | pandas | pandas_whatsnew | 0.15.0 | 36 | Both will now raise a `KeyError`. The rule is that *at least 1* indexer must be found when using a list-like and `.loc` ([GH 7999](https://github.com/pandas-dev/pandas/issues/7999))
Furthermore in prior versions these were also different:
+ `df.loc[[1,3]]` would return a frame reindexed by [1,3]
+ `df.loc[[1,... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
f2aacc0a-2053-5c22-a613-021fcb8de39b | changelog | pandas | pandas_whatsnew | 0.15.0 | 37 | The following would raise `KeyError` prior to 0.15.0:
```None
In [5]:
Out[5]:
ItemA ItemD
1 3 NaN
2 7 NaN
3 11 NaN
```
Furthermore, `.loc` will raise If no values are found in a MultiIndex with a list-like indexer:
```None
In [63]: s = pd.Series(np.arange(3, dtype='... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
7ab11838-6a68-54b0-9c4f-5216de9f2576 | changelog | pandas | pandas_whatsnew | 0.15.0 | 38 | * Assigning values to `None` now considers the dtype when choosing an ‘empty’ value ([GH 7941](https://github.com/pandas-dev/pandas/issues/7941)).
Previously, assigning to `None` in numeric containers changed the
dtype to object (or errored, depending on the call). It now uses
`NaN`:
```None
In [66]: s = pd... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
2b3284bd-2658-5330-ae07-2425cbc95cca | changelog | pandas | pandas_whatsnew | 0.15.0 | 39 | * In prior versions, updating a pandas object inplace would not reflect in other python references to this object. ([GH 8511](https://github.com/pandas-dev/pandas/issues/8511), [GH 5104](https://github.com/pandas-dev/pandas/issues/5104))
```None
In [72]: s = pd.Series([1, 2, 3])
In [73]: s2 = s
In [74]: s +=... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
f253b992-1355-56f2-9b82-738a5c518a26 | changelog | pandas | pandas_whatsnew | 0.15.0 | 40 | white space-filled lines, as long as `sep` is not white space. This is an API change
that can be controlled by the keyword parameter `skip_blank_lines`. See [the docs](../user_guide/io.html#io-skiplines) ([GH 4466](https://github.com/pandas-dev/pandas/issues/4466))
* A timeseries/index localized to UTC when inserte... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
9172263f-db4b-5921-944f-7f632ed595e7 | changelog | pandas | pandas_whatsnew | 0.15.0 | 41 | '2011-01-01 00:00:20-05:00'],
dtype='datetime64[ns, US/Eastern]', freq='10s')
In [79]: df = pd.DataFrame({'a': i})
In [80]: df
Out[80]:
a
0 2011-01-01 00:00:00-05:00
1 2011-01-01 00:00:10-05:00
2 2011-01-01 00:00:20-05:00
[3 rows x 1 columns... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
1f2954a8-e4fb-5823-ae8f-cfa0d782bb45 | changelog | pandas | pandas_whatsnew | 0.15.0 | 42 | [Reshaping by stacking and unstacking](../user_guide/reshaping.html#reshaping-stack-multiple).
* Raise a `ValueError` in `df.to_hdf` with ‘fixed’ format, if `df` has non-unique columns as the resulting file will be broken ([GH 7761](https://github.com/pandas-dev/pandas/issues/7761))
* `SettingWithCopy` raise/warnings... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
1295373e-3ecd-5c8a-a4ad-c6dae221b0d6 | changelog | pandas | pandas_whatsnew | 0.15.0 | 43 | See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
```
* `merge`, `DataFrame.merge`, and `ordered_merge` now return the same type
as the `left` argument ([GH 7737](https://github.com/pandas-dev/pandas/issues/7737)).
* Previously an enlargemen... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
7b97d3ed-b10d-524a-adaf-cf25c0380aab | changelog | pandas | pandas_whatsnew | 0.15.0 | 44 | 1 False 2
2 False 2
[3 rows x 2 columns]
In [87]: df.dtypes
Out[87]:
female bool
fitness int64
Length: 2, dtype: object
```
* `Series.to_csv()` now returns a string when `path=None`, matching the behaviour of `DataFrame.to_csv()` ([GH 8215](https://github.com/pandas-dev/pa... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
f60f7b46-a325-5504-b376-1792d757773b | changelog | pandas | pandas_whatsnew | 0.15.0 | 45 | * `DataFrame.plot` and `Series.plot` keywords are now have consistent orders ([GH 8037](https://github.com/pandas-dev/pandas/issues/8037))
### Internal refactoring[#](#internal-refactoring "Link to this heading")
In 0.15.0 `Index` has internally been refactored to no longer sub-class `ndarray`
but instead subclass `P... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
654d5582-3416-5077-9fde-b6fd88d4d57a | changelog | pandas | pandas_whatsnew | 0.15.0 | 46 | * you may need to unpickle pandas version < 0.15.0 pickles using `pd.read_pickle` rather than `pickle.load`. See [pickle docs](../user_guide/io.html#io-pickle)
* when plotting with a `PeriodIndex`, the matplotlib internal axes will now be arrays of `Period` rather than a `PeriodIndex` (this is similar to how a `Datetim... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
87545838-9f59-5fa3-97c2-d0334893c7ea | changelog | pandas | pandas_whatsnew | 0.15.0 | 47 | ### Deprecations[#](#deprecations "Link to this heading")
* The attributes `Categorical` `labels` and `levels` attributes are
deprecated and renamed to `codes` and `categories`.
* The `outtype` argument to `pd.DataFrame.to_dict` has been deprecated in favor of `orient`. ([GH 7840](https://github.com/pandas-dev/panda... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
a25d8693-f4b9-5850-b99c-1a76320fdaea | changelog | pandas | pandas_whatsnew | 0.15.0 | 48 | * The `Index` set operations `+` and `-` were deprecated in order to provide these for numeric type operations on certain index types. `+` can be replaced by `.union()` or `|`, and `-` by `.difference()`. Further the method name `Index.diff()` is deprecated and can be replaced by `Index.difference()` ([GH 8226](https:/... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
8f1d3b27-4277-5351-9226-11d30369615e | changelog | pandas | pandas_whatsnew | 0.15.0 | 49 | ### Removal of prior version deprecations/changes[#](#removal-of-prior-version-deprecations-changes "Link to this heading")
* Remove `DataFrame.delevel` method in favor of `DataFrame.reset_index`
## Enhancements[#](#enhancements "Link to this heading")
Enhancements in the importing/exporting of Stata files:
* Added... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
3dc9e503-840e-5627-98cb-788d78b4a29d | changelog | pandas | pandas_whatsnew | 0.15.0 | 50 | * `read_stata` and `StataReader` can import missing data information into a
`DataFrame` by setting the argument `convert_missing` to `True`. When
using this options, missing values are returned as `StataMissingValue`
objects and columns containing missing values have `object` data type. ([GH 8045](https://github.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
582bb524-10f2-51eb-9ef1-a624e45cc540 | changelog | pandas | pandas_whatsnew | 0.15.0 | 51 | * Added support for `c`, `colormap` and `colorbar` arguments for `DataFrame.plot` with `kind='scatter'` ([GH 7780](https://github.com/pandas-dev/pandas/issues/7780))
* Histogram from `DataFrame.plot` with `kind='hist'` ([GH 7809](https://github.com/pandas-dev/pandas/issues/7809)), See [the docs](../user_guide/visualiza... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
b956376e-760f-51fa-85d8-79652d808e0f | changelog | pandas | pandas_whatsnew | 0.15.0 | 52 | * `describe()` on mixed-types DataFrames is more flexible. Type-based column filtering is now possible via the `include`/`exclude` arguments.
See the [docs](../user_guide/basics.html#basics-describe) ([GH 8164](https://github.com/pandas-dev/pandas/issues/8164)).
```None
In [88]: df = pd.DataFrame({'catA': ['foo'... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
013413fc-c2e8-5862-9106-dd7af6827263 | changelog | pandas | pandas_whatsnew | 0.15.0 | 53 | min NaN NaN 0.000000
25% NaN NaN 5.750000
50% NaN NaN 11.500000
75% NaN NaN 17.250000
max NaN NaN 23.000000
[11 rows x 3 columns]
```
Requesting all columns is possible with the shorthand ‘all’
```None
In [91]: df.describe(include='all')
Out[91]:
catA c... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
c557089f-6078-5a8e-922f-be97b3035cf3 | changelog | pandas | pandas_whatsnew | 0.15.0 | 54 | Without those arguments, `describe` will behave as before, including only numerical columns or, if none are, only categorical columns. See also the [docs](../user_guide/basics.html#basics-describe)
* Added `split` as an option to the `orient` argument in `pd.DataFrame.to_dict`. ([GH 7840](https://github.com/pandas-de... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
195d03df-b45e-50d8-83e0-769f4f25d640 | changelog | pandas | pandas_whatsnew | 0.15.0 | 55 | * `pandas.tseries.holiday` has added support for additional holidays and ways to observe holidays ([GH 7070](https://github.com/pandas-dev/pandas/issues/7070))
* `pandas.tseries.holiday.Holiday` now supports a list of offsets in Python3 ([GH 7070](https://github.com/pandas-dev/pandas/issues/7070))
* `pandas.tseries.hol... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
3e978ff2-0b56-5ed3-8b84-00534d598c74 | changelog | pandas | pandas_whatsnew | 0.15.0 | 56 | 2014-06-02 1 1
2014-06-05 1 1
2014-06-30 1 1
[9 rows x 2 columns]
```
* `Period` and `PeriodIndex` supports addition/subtraction with `timedelta`-likes ([GH 7966](https://github.com/pandas-dev/pandas/issues/7966))
If `Period` freq is `D`, `H`, `T`, `S`, `L`, `U`, `N`, `Timedelta`-like can be added i... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
e84dfcfa-4331-5695-b5bc-1edd69520048 | changelog | pandas | pandas_whatsnew | 0.15.0 | 57 | '2014-07-01 14:00', '2014-07-01 15:00'],
dtype='period[H]')
In [108]: idx = pd.period_range('2014-07', periods=5, freq='M')
In [109]: idx
Out[109]: PeriodIndex(['2014-07', '2014-08', '2014-09', '2014-10', '2014-11'], dtype='period[M]')
In [110]: idx + pd.offsets.MonthEnd(3)
Out... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
788958ed-3eb4-5cb0-9c35-a3a5ec1ad259 | changelog | pandas | pandas_whatsnew | 0.15.0 | 58 | * Passing multiple levels to [`stack()`](../reference/api/pandas.DataFrame.stack.html#pandas.DataFrame.stack "pandas.DataFrame.stack") will now work when multiple level
numbers are passed ([GH 7660](https://github.com/pandas-dev/pandas/issues/7660)). See
[Reshaping by stacking and unstacking](../user_guide/reshapin... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
22511fb8-c99a-5a66-aaed-cfb9184743c6 | changelog | pandas | pandas_whatsnew | 0.15.0 | 59 | ('a', 1, 'p'),
('a', 1, 'q'),
('a', 1, 'r'),
('a', 2, 'p'),
('a', 2, 'q'),
('a', 2, 'r')],
names=['qux', 'bar', 'baz'])
In [99]: idx.set_names(['qux', 'corge'], level=[0, 1])
Out[99]:
MultiIndex([('a', 0, 'p'),
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
34e4ef27-da56-5874-9539-a69f601e0bc2 | changelog | pandas | pandas_whatsnew | 0.15.0 | 60 | In [101]: idx.set_levels([['a', 'b', 'c'], [1, 2, 3]], level=[1, 2])
Out[101]:
MultiIndex([('a', 'a', 1),
('a', 'a', 2),
('a', 'a', 3),
('a', 'b', 1),
('a', 'b', 2),
('a', 'b', 3),
('a', 'c', 1),
('a', 'c', 2),
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
a8cd895c-e432-5e2c-927e-5680683f9c4b | changelog | pandas | pandas_whatsnew | 0.15.0 | 61 | * `Index` now supports `duplicated` and `drop_duplicates`. ([GH 4060](https://github.com/pandas-dev/pandas/issues/4060))
```None
In [102]: idx = pd.Index([1, 2, 3, 4, 1, 2])
In [103]: idx
Out[103]: Index([1, 2, 3, 4, 1, 2], dtype='int64')
In [104]: idx.duplicated()
Out[104]: array([False, False, False, F... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
e9ce396d-a5c1-5b64-b7e7-c1661c9c06c9 | changelog | pandas | pandas_whatsnew | 0.15.0 | 62 | * Performance improvements in `Period` creation (and `PeriodIndex` setitem) ([GH 5155](https://github.com/pandas-dev/pandas/issues/5155))
* Improvements in Series.transform for significant performance gains (revised) ([GH 6496](https://github.com/pandas-dev/pandas/issues/6496))
* Performance improvements in `StataReade... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
f6fd1020-f51d-520e-a786-131f419a4157 | changelog | pandas | pandas_whatsnew | 0.15.0 | 63 | * Performance improvement in writing to sql (`to_sql`) of up to 50% ([GH 8208](https://github.com/pandas-dev/pandas/issues/8208)).
* Performance benchmarking of groupby for large value of ngroups ([GH 6787](https://github.com/pandas-dev/pandas/issues/6787))
* Performance improvement in `CustomBusinessDay`, `CustomBusin... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
c73fb9da-5cb3-5e8f-807e-b3faaf3e3845 | changelog | pandas | pandas_whatsnew | 0.15.0 | 64 | * Bug in `DataFrame.groupby` where `Grouper` does not recognize level when frequency is specified ([GH 7885](https://github.com/pandas-dev/pandas/issues/7885))
* Bug in multiindexes dtypes getting mixed up when DataFrame is saved to SQL table ([GH 8021](https://github.com/pandas-dev/pandas/issues/8021))
* Bug in `Serie... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
5e614427-c1bb-5c5d-a2c6-e66d672afbb1 | changelog | pandas | pandas_whatsnew | 0.15.0 | 65 | * Bug in `to_datetime` when `format='%Y%m%d'` and `coerce=True` are specified, where previously an object array was returned (rather than
a coerced time-series with `NaT`), ([GH 7930](https://github.com/pandas-dev/pandas/issues/7930))
* Bug in `DatetimeIndex` and `PeriodIndex` in-place addition and subtraction cause ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
02ffe807-0eef-59e3-9f77-fdd007e78ea5 | changelog | pandas | pandas_whatsnew | 0.15.0 | 66 | * Regression in MultiIndex indexing with a non-scalar type object ([GH 7914](https://github.com/pandas-dev/pandas/issues/7914))
* Bug in `Timestamp` comparisons with `==` and `int64` dtype ([GH 8058](https://github.com/pandas-dev/pandas/issues/8058))
* Bug in pickles contains `DateOffset` may raise `AttributeError` whe... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
fcf00a28-ddb5-50f7-ac84-59025e23eb78 | changelog | pandas | pandas_whatsnew | 0.15.0 | 67 | * Bug in putting a `PeriodIndex` into a `Series` would convert to `int64` dtype, rather than `object` of `Periods` ([GH 7932](https://github.com/pandas-dev/pandas/issues/7932))
* Bug in `HDFStore` iteration when passing a where ([GH 8014](https://github.com/pandas-dev/pandas/issues/8014))
* Bug in `DataFrameGroupby.tra... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
117a3977-3ef7-59d6-ae11-2a69cb1564fc | changelog | pandas | pandas_whatsnew | 0.15.0 | 68 | * Bug in `offsets.apply`, `rollforward` and `rollback` may reset nanosecond ([GH 7697](https://github.com/pandas-dev/pandas/issues/7697))
* Bug in `offsets.apply`, `rollforward` and `rollback` may raise `AttributeError` if `Timestamp` has `dateutil` tzinfo ([GH 7697](https://github.com/pandas-dev/pandas/issues/7697))
*... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
ed566630-20a1-52cd-806e-182393c92d00 | changelog | pandas | pandas_whatsnew | 0.15.0 | 69 | * Bug in `PeriodIndex.unique` returns int64 `np.ndarray` ([GH 7540](https://github.com/pandas-dev/pandas/issues/7540))
* Bug in `groupby.apply` with a non-affecting mutation in the function ([GH 8467](https://github.com/pandas-dev/pandas/issues/8467))
* Bug in `DataFrame.reset_index` which has `MultiIndex` contains `Pe... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
eca178b6-754b-53a9-809b-d6b8c069c353 | changelog | pandas | pandas_whatsnew | 0.15.0 | 70 | * Bug in `StataReader` where strings were always converted to 244 characters-fixed width irrespective of underlying string size ([GH 7858](https://github.com/pandas-dev/pandas/issues/7858))
* Bug in `DataFrame.plot` and `Series.plot` may ignore `rot` and `fontsize` keywords ([GH 7844](https://github.com/pandas-dev/pand... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
784b140a-b2a6-5ee8-bc49-a65aeeb0ee61 | changelog | pandas | pandas_whatsnew | 0.15.0 | 71 | and produce a `DataFrame` instead of a `Series` ([GH 7929](https://github.com/pandas-dev/pandas/issues/7929))
* Bug in `groupby` error message when a DataFrame grouping column is duplicated ([GH 7511](https://github.com/pandas-dev/pandas/issues/7511))
* Bug in `read_html` where the `infer_types` argument forced coerc... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.15.0.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.