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 |
|---|---|---|---|---|---|---|---|
c96fef89-4144-54e5-ae6f-1ef34a32227d | changelog | pandas | pandas_whatsnew | 0.20.2 | 3 | * Bug in `DataFrame.update()` with `overwrite=False` and `NaN values` ([GH 15593](https://github.com/pandas-dev/pandas/issues/15593))
* Passing an invalid engine to [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") now raises an informative
`ValueError` rather than `UnboundLocalE... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.2.md |
599e15ea-7ac3-5a9c-88c1-e9cee10d4ff0 | changelog | pandas | pandas_whatsnew | 0.20.2 | 4 | ### Conversion[#](#conversion "Link to this heading")
* Bug in [`to_numeric()`](../reference/api/pandas.to_numeric.html#pandas.to_numeric "pandas.to_numeric") in which empty data inputs were causing a segfault of the interpreter ([GH 16302](https://github.com/pandas-dev/pandas/issues/16302))
* Silence numpy warnings w... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.2.md |
c7cac640-1077-5037-b2bb-6d897c733d87 | changelog | pandas | pandas_whatsnew | 0.20.2 | 5 | * Bug in `MultiIndex.remove_unused_levels()` that would not return a `MultiIndex` equal to the original. ([GH 16556](https://github.com/pandas-dev/pandas/issues/16556))
### IO[#](#io "Link to this heading")
* Bug in [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") when `comment`... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.2.md |
97775c72-6625-5537-906e-fe96bcd98a28 | changelog | pandas | pandas_whatsnew | 0.20.2 | 6 | * Bug in [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") in which tarfile object inputs were raising an error in Python 2.x for the C engine ([GH 16530](https://github.com/pandas-dev/pandas/issues/16530))
* Bug where `DataFrame.to_html()` ignored the `index_names` parameter ([GH ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.2.md |
af8bf497-30cd-5175-813b-c4165e291bf0 | changelog | pandas | pandas_whatsnew | 0.20.2 | 7 | * Bug in `DataFrame.boxplot` where `figsize` keyword was not respected for non-grouped boxplots ([GH 11959](https://github.com/pandas-dev/pandas/issues/11959))
### GroupBy/resample/rolling[#](#groupby-resample-rolling "Link to this heading")
* Bug in creating a time-based rolling window on an empty `DataFrame` ([GH 1... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.2.md |
7a3ea164-22bc-5d40-b755-3e16e416abbb | changelog | pandas | pandas_whatsnew | 0.20.2 | 8 | ### Reshaping[#](#reshaping "Link to this heading")
* Bug in `DataFrame.stack` with unsorted levels in `MultiIndex` columns ([GH 16323](https://github.com/pandas-dev/pandas/issues/16323))
* Bug in `pd.wide_to_long()` where no error was raised when `i` was not a unique identifier ([GH 16382](https://github.com/pandas-d... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.2.md |
84cbf9b2-8739-5806-a217-f30e745dee9e | changelog | pandas | pandas_whatsnew | 0.20.2 | 9 | ### Categorical[#](#categorical "Link to this heading")
* Fixed comparison operations considering the order of the categories when both categoricals are unordered ([GH 16014](https://github.com/pandas-dev/pandas/issues/16014))
### Other[#](#other "Link to this heading")
* Bug in `DataFrame.drop()` with an empty-list... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.2.md |
1e2a1ca5-8628-52c2-9591-dfff3202fd6b | changelog | pandas | pandas_whatsnew | 0.20.2 | 10 | * Tom Augspurger
* WBare +
* bpraggastis +
* chernrick +
* chris-b1
* economy +
* gfyoung
* jaredsnyder +
* keitakurita +
* linebp
* lloydkirk +
| large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.2.md |
b633f044-ab0b-5923-aebc-e8efa10b674b | changelog | pandas | pandas_whatsnew | 0.20.3 | 0 | # What's new in pandas 0.20.3
Source: https://pandas.pydata.org/docs/whatsnew/v0.20.3.html
# Version 0.20.3 (July 7, 2017)[#](#version-0-20-3-july-7-2017 "Link to this heading")
This is a minor bug-fix release in the 0.20.x series and includes some small regression fixes
and bug fixes. We recommend that all users up... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.3.md |
849afb36-834d-58af-887f-3da14f22d83a | changelog | pandas | pandas_whatsnew | 0.20.3 | 1 | ### Conversion[#](#conversion "Link to this heading")
* Bug in pickle compat prior to the v0.20.x series, when `UTC` is a timezone in a Series/DataFrame/Index ([GH 16608](https://github.com/pandas-dev/pandas/issues/16608))
* Bug in `Series` construction when passing a `Series` with `dtype='category'` ([GH 16524](https... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.3.md |
21378c55-ec6b-5ee5-ab0e-6cecd6d1f5cf | changelog | pandas | pandas_whatsnew | 0.20.3 | 2 | * Fixed a bug in a slicing DataFrame/Series that have a `TimedeltaIndex` ([GH 16637](https://github.com/pandas-dev/pandas/issues/16637))
### IO[#](#io "Link to this heading")
* Bug in [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") in which files weren’t opened as binary files ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.3.md |
72b5711b-2345-56e4-a432-004ebe0ca96f | changelog | pandas | pandas_whatsnew | 0.20.3 | 3 | * Bug in [`DataFrame.to_latex()`](../reference/api/pandas.DataFrame.to_latex.html#pandas.DataFrame.to_latex "pandas.DataFrame.to_latex") where `bold_rows` was wrongly specified to be `True` by default, whereas in reality row labels remained non-bold whatever parameter provided. ([GH 16707](https://github.com/pandas-dev... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.3.md |
f3fce8a6-6aa7-5a01-bba4-c6263302e14f | changelog | pandas | pandas_whatsnew | 0.20.3 | 4 | * Fixed an issue with [`DataFrame.plot.scatter()`](../reference/api/pandas.DataFrame.plot.scatter.html#pandas.DataFrame.plot.scatter "pandas.DataFrame.plot.scatter") that incorrectly raised a `KeyError` when categorical data is used for plotting ([GH 16199](https://github.com/pandas-dev/pandas/issues/16199))
### Resha... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.3.md |
6e432da9-ef45-57be-b8d8-3aad59f2476d | changelog | pandas | pandas_whatsnew | 0.20.3 | 5 | ### Categorical[#](#categorical "Link to this heading")
* Bug in `DataFrame.sort_values` not respecting the `kind` parameter with categorical data ([GH 16793](https://github.com/pandas-dev/pandas/issues/16793))
## Contributors[#](#contributors "Link to this heading")
A total of 20 people contributed patches to this ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.20.3.md |
4cb79da1-4ae4-5ee2-a2b9-e013cf254416 | changelog | pandas | pandas_whatsnew | 0.21.0 | 0 | # What's new in pandas 0.21.0
Source: https://pandas.pydata.org/docs/whatsnew/v0.21.0.html
# Version 0.21.0 (October 27, 2017)[#](#version-0-21-0-october-27-2017 "Link to this heading")
This is a major release from 0.20.3 and includes a number of API changes, deprecations, new features,
enhancements, and performance... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
63f1e926-3336-5e36-b4d9-4fcd6cbd30d8 | changelog | pandas | pandas_whatsnew | 0.21.0 | 1 | * The behavior of `sum` and `prod` on all-NaN Series/DataFrames is now consistent and no longer depends on whether [bottleneck](https://bottleneck.readthedocs.io) is installed, and `sum` and `prod` on empty Series now return NaN instead of 0, see [here](#whatsnew-0210-api-breaking-bottleneck).
* Compatibility fixes for... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
be21ab77-2af1-5ac7-8be1-b5651d6d3b0e | changelog | pandas | pandas_whatsnew | 0.21.0 | 2 | * [New features](#new-features)
+ [Integration with Apache Parquet file format](#integration-with-apache-parquet-file-format)
+ [Method `infer_objects` type conversion](#method-infer-objects-type-conversion)
+ [Improved warnings when attempting to create columns](#improved-warnings-when-attempting-to-create-colu... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
c7900d4b-67b8-5b2e-a18f-bf55600e77bc | changelog | pandas | pandas_whatsnew | 0.21.0 | 3 | + [Dependencies have increased minimum versions](#dependencies-have-increased-minimum-versions)
+ [Sum/prod of all-NaN or empty Series/DataFrames is now consistently NaN](#sum-prod-of-all-nan-or-empty-series-dataframes-is-now-consistently-nan)
+ [Indexing with a list with missing labels is deprecated](#indexing-w... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
d4bf3b31-0653-5564-9c13-c7225648b039 | changelog | pandas | pandas_whatsnew | 0.21.0 | 4 | + [Consistency of range functions](#consistency-of-range-functions)
+ [No automatic Matplotlib converters](#no-automatic-matplotlib-converters)
+ [Other API changes](#other-api-changes)
* [Deprecations](#deprecations)
+ [Series.select and DataFrame.select](#series-select-and-dataframe-select)
+ [Series.argma... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
4cfe27b8-4d5a-5018-8925-acc7f7d23511 | changelog | pandas | pandas_whatsnew | 0.21.0 | 5 | ## New features[#](#new-features "Link to this heading")
### Integration with Apache Parquet file format[#](#integration-with-apache-parquet-file-format "Link to this heading")
Integration with [Apache Parquet](https://parquet.apache.org/), including a new top-level [`read_parquet()`](../reference/api/pandas.read_par... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
ba2046f9-3c50-5cea-8a66-3e66c56ff0b9 | changelog | pandas | pandas_whatsnew | 0.21.0 | 6 | This functionality depends on either the [pyarrow](http://arrow.apache.org/docs/python/) or [fastparquet](https://fastparquet.readthedocs.io/en/latest/) library.
For more details, see [the IO docs on Parquet](../user_guide/io.html#io-parquet).
### Method `infer_objects` type conversion[#](#method-infer-objects-type-co... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
c78257b0-77ee-52ea-aa4f-9510cd4ad8ba | changelog | pandas | pandas_whatsnew | 0.21.0 | 7 | This method only performs soft conversions on object columns, converting Python objects
to native types, but not any coercive conversions. For example:
```None
In [1]: df = pd.DataFrame({'A': [1, 2, 3],
...: 'B': np.array([1, 2, 3], dtype='object'),
...: 'C': ['1', '2', '3']... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
dbb98a3d-2c97-5900-bc7f-30b2cf6e8785 | changelog | pandas | pandas_whatsnew | 0.21.0 | 8 | In [4]: df = df.infer_objects()
In [5]: df['C'] = pd.to_numeric(df['C'], errors='coerce')
In [6]: df.dtypes
Out[6]:
A int64
B int64
C int64
Length: 3, dtype: object
```
### Improved warnings when attempting to create columns[#](#improved-warnings-when-attempting-to-create-columns "Link to this heading")
N... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
9583b980-5500-5263-8afe-09c5196b7883 | changelog | pandas | pandas_whatsnew | 0.21.0 | 9 | Setting a list-like data structure into a new attribute now raises a `UserWarning` about the potential for unexpected behavior. See [Attribute Access](../user_guide/indexing.html#indexing-attribute-access).
### Method `drop` now also accepts index/columns keywords[#](#method-drop-now-also-accepts-index-columns-keyword... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
9b94b55b-e0eb-54ad-b88f-a1ab322cf471 | changelog | pandas | pandas_whatsnew | 0.21.0 | 10 | In [10]: df.drop(columns=['B', 'C'])
Out[10]:
A D
0 0 3
1 4 7
[2 rows x 2 columns]
```
### Methods `rename`, `reindex` now also accept axis keyword[#](#methods-rename-reindex-now-also-accept-axis-keyword "Link to this heading")
The [`DataFrame.rename()`](../reference/api/pandas.DataFrame.rename.html#pandas.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
aba34be2-78a1-5fc6-839c-cfc8cef404b8 | changelog | pandas | pandas_whatsnew | 0.21.0 | 11 | ```None
In [14]: df.reindex(['A', 'B', 'C'], axis='columns')
Out[14]:
A B C
0 1 4 NaN
1 2 5 NaN
2 3 6 NaN
[3 rows x 3 columns]
In [15]: df.reindex([0, 1, 3], axis='index')
Out[15]:
A B
0 1.0 4.0
1 2.0 5.0
3 NaN NaN
[3 rows x 2 columns]
```
The “index, columns” style continues to work as ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
6c8b9d13-c33c-5df4-b4e9-7aee63d20e15 | changelog | pandas | pandas_whatsnew | 0.21.0 | 12 | `CategoricalDtype` can be used to specify the set of categories and
orderedness of an array, independent of the data. This can be useful for example,
when converting string data to a `Categorical` ([GH 14711](https://github.com/pandas-dev/pandas/issues/14711),
[GH 15078](https://github.com/pandas-dev/pandas/issues/1507... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
4c68085b-61da-53c8-8ab4-30fbc152acc4 | changelog | pandas | pandas_whatsnew | 0.21.0 | 13 | `dtype={'col': 'category'}`, the returned values and categories would always
be strings.
```None
In [22]: data = 'A,B\na,1\nb,2\nc,3'
In [23]: pd.read_csv(StringIO(data), dtype={'B': 'category'}).B.cat.categories
Out[23]: Index(['1', '2', '3'], dtype='object')
```
Notice the “object” dtype.
With a `CategoricalDtype... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
f59c2385-e7fc-5c3a-9fdc-0976dc7f98c2 | changelog | pandas | pandas_whatsnew | 0.21.0 | 14 | [`pandas.api.types.is_categorical_dtype()`](../reference/api/pandas.api.types.is_categorical_dtype.html#pandas.api.types.is_categorical_dtype "pandas.api.types.is_categorical_dtype"), and not `str(dtype) == 'category'`.
See the [CategoricalDtype docs](../user_guide/categorical.html#categorical-categoricaldtype) for mo... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
a47e3106-58cf-54a9-b67b-28b364c09b99 | changelog | pandas | pandas_whatsnew | 0.21.0 | 15 | We could do this in a multi-step operation, but expressing it in terms of piping can make the
code more readable.
First we set the data:
```None
In [26]: import numpy as np
In [27]: n = 1000
In [28]: df = pd.DataFrame({'Store': np.random.choice(['Store_1', 'Store_2'], n),
....: 'Product': np.r... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
e6383b85-7870-523b-9589-2661532de35a | changelog | pandas | pandas_whatsnew | 0.21.0 | 16 | ....: .pipe(lambda grp: grp.Revenue.sum() / grp.Quantity.sum())
....: .unstack().round(2))
....:
Out[30]:
Product Product_1 Product_2 Product_3
Store
Store_1 6.73 6.72 7.14
Store_2 7.59 6.98 7.23
[2 rows x 3 columns]
```
See th... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
3de66784-5a27-5ea1-b234-656998f061e5 | changelog | pandas | pandas_whatsnew | 0.21.0 | 17 | In [31]: c = pd.Categorical(['a', 'a', 'b'])
In [32]: c.rename_categories({"a": "eh", "b": "bee"})
Out[32]:
['eh', 'eh', 'bee']
Categories (2, object): ['eh', 'bee']
```
Warning
To assist with upgrading pandas, `rename_categories` treats `Series` as
list-like. Typically, Series are considered to be dict-like (e.g. ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
de750c85-c876-5bd7-961e-ca0977a58208 | changelog | pandas | pandas_whatsnew | 0.21.0 | 18 | ### Other enhancements[#](#other-enhancements "Link to this heading")
#### New functions or methods[#](#new-functions-or-methods "Link to this heading")
* [`Resampler.nearest()`](../reference/api/pandas.core.resample.Resampler.nearest.html#pandas.core.resample.Resampler.nearest "pandas.core.resample.Resampler.nearest... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
7b7a77df-9c25-5a78-a4b6-58cf25466a3d | changelog | pandas | pandas_whatsnew | 0.21.0 | 19 | * [`Series.to_dict()`](../reference/api/pandas.Series.to_dict.html#pandas.Series.to_dict "pandas.Series.to_dict") and [`DataFrame.to_dict()`](../reference/api/pandas.DataFrame.to_dict.html#pandas.DataFrame.to_dict "pandas.DataFrame.to_dict") now support an `into` keyword which allows you to specify the `collections.Map... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
2b5adbe4-1dda-5854-b749-dbbf70dfd514 | changelog | pandas | pandas_whatsnew | 0.21.0 | 20 | * [`Series.to_pickle()`](../reference/api/pandas.Series.to_pickle.html#pandas.Series.to_pickle "pandas.Series.to_pickle") and [`DataFrame.to_pickle()`](../reference/api/pandas.DataFrame.to_pickle.html#pandas.DataFrame.to_pickle "pandas.DataFrame.to_pickle") have gained a `protocol` parameter ([GH 16252](https://github.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
f5ecc8e3-0b42-57a7-8cad-3482d29b8791 | changelog | pandas | pandas_whatsnew | 0.21.0 | 21 | * [`DataFrame.clip()`](../reference/api/pandas.DataFrame.clip.html#pandas.DataFrame.clip "pandas.DataFrame.clip") and [`Series.clip()`](../reference/api/pandas.Series.clip.html#pandas.Series.clip "pandas.Series.clip") have gained an `inplace` argument. ([GH 15388](https://github.com/pandas-dev/pandas/issues/15388))
* [... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
2f9af273-ea47-580e-b7b6-22b0bbb65338 | changelog | pandas | pandas_whatsnew | 0.21.0 | 22 | * [`read_json()`](../reference/api/pandas.read_json.html#pandas.read_json "pandas.read_json") and [`to_json()`](../reference/api/pandas.DataFrame.to_json.html#pandas.DataFrame.to_json "pandas.DataFrame.to_json") now accept a `compression` argument which allows them to transparently handle compressed files. ([GH 17798](... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
a6597e69-416a-55c2-94d2-8263535af3bf | changelog | pandas | pandas_whatsnew | 0.21.0 | 23 | * Added a `__fspath__` method to `pd.HDFStore`, `pd.ExcelFile`,
and `pd.ExcelWriter` to work properly with the file system path protocol ([GH 13823](https://github.com/pandas-dev/pandas/issues/13823)).
* The `validate` argument for [`merge()`](../reference/api/pandas.merge.html#pandas.merge "pandas.merge") now checks... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
70ac6960-56b2-5345-aaef-6599020beb00 | changelog | pandas | pandas_whatsnew | 0.21.0 | 24 | * [`Series.rename_axis()`](../reference/api/pandas.Series.rename_axis.html#pandas.Series.rename_axis "pandas.Series.rename_axis") and [`DataFrame.rename_axis()`](../reference/api/pandas.DataFrame.rename_axis.html#pandas.DataFrame.rename_axis "pandas.DataFrame.rename_axis") with `inplace=True` now return `None` while re... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
add6d7b5-6c13-5228-84c8-0d2852edd970 | changelog | pandas | pandas_whatsnew | 0.21.0 | 25 | * [`date_range()`](../reference/api/pandas.date_range.html#pandas.date_range "pandas.date_range") now accepts ‘YS’ in addition to ‘AS’ as an alias for start of year. ([GH 9313](https://github.com/pandas-dev/pandas/issues/9313))
* [`date_range()`](../reference/api/pandas.date_range.html#pandas.date_range "pandas.date_ra... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
6a568747-fb06-5b6d-a61c-f315c4162cac | changelog | pandas | pandas_whatsnew | 0.21.0 | 26 | * Read/write methods that infer compression ([`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv"), [`read_table()`](../reference/api/pandas.read_table.html#pandas.read_table "pandas.read_table"), [`read_pickle()`](../reference/api/pandas.read_pickle.html#pandas.read_pickle "pandas.rea... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
fcb298bb-53e0-5f03-9ad7-c3d6d5758462 | changelog | pandas | pandas_whatsnew | 0.21.0 | 27 | * [`DataFrame.items()`](../reference/api/pandas.DataFrame.items.html#pandas.DataFrame.items "pandas.DataFrame.items") and [`Series.items()`](../reference/api/pandas.Series.items.html#pandas.Series.items "pandas.Series.items") are now present in both Python 2 and 3 and is lazy in all cases. ([GH 13918](https://github.co... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
6657cbaf-4295-57d5-988c-a1d25e747c9e | changelog | pandas | pandas_whatsnew | 0.21.0 | 28 | * [`DataFrame.assign()`](../reference/api/pandas.DataFrame.assign.html#pandas.DataFrame.assign "pandas.DataFrame.assign") will preserve the original order of `**kwargs` for Python 3.6+ users instead of sorting the column names. ([GH 14207](https://github.com/pandas-dev/pandas/issues/14207))
* [`Series.reindex()`](../re... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
5221f08e-85f5-5b98-95ff-651bccde09d6 | changelog | pandas | pandas_whatsnew | 0.21.0 | 29 | ### Dependencies have increased minimum versions[#](#dependencies-have-increased-minimum-versions "Link to this heading")
We have updated our minimum supported versions of dependencies ([GH 15206](https://github.com/pandas-dev/pandas/issues/15206), [GH 15543](https://github.com/pandas-dev/pandas/issues/15543), [GH 152... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
9e6ae80b-e4ee-5453-89d5-819dda872506 | changelog | pandas | pandas_whatsnew | 0.21.0 | 30 | The behavior of `sum` and `prod` on all-NaN Series/DataFrames no longer depends on
whether [bottleneck](https://bottleneck.readthedocs.io) is installed, and return value of `sum` and `prod` on an empty Series has changed ([GH 9422](https://github.com/pandas-dev/pandas/issues/9422), [GH 15507](https://github.com/pandas-... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
6f76834f-a6d8-5db2-8a69-8eb4bc5c12af | changelog | pandas | pandas_whatsnew | 0.21.0 | 31 | Out[1]: 0
```
but for consistency with the all-NaN case, this was changed to return 0 as well:
```None
In [2]: pd.Series([]).sum()
Out[2]: 0
```
### Indexing with a list with missing labels is deprecated[#](#indexing-with-a-list-with-missing-labels-is-deprecated "Link to this heading")
Previously, selecting with a ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
198c21da-34d7-5f2c-91f6-74b3dbbd7916 | changelog | pandas | pandas_whatsnew | 0.21.0 | 32 | Passing list-likes to .loc or [] with any missing label will raise
KeyError in the future, you can use .reindex() as an alternative.
See the documentation here:
https://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike
Out[4]:
1 2.0
2 3.0
3 NaN
dtype: float64
```
The idiomati... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
50e7d9cd-2d4c-5373-8b42-52a807db1e70 | changelog | pandas | pandas_whatsnew | 0.21.0 | 33 | functions [`isna()`](../reference/api/pandas.isna.html#pandas.isna "pandas.isna") and [`notna()`](../reference/api/pandas.notna.html#pandas.notna "pandas.notna") that are aliases for [`isnull()`](../reference/api/pandas.isnull.html#pandas.isnull "pandas.isnull") and [`notnull()`](../reference/api/pandas.notnull.html#pa... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
22584d0c-95af-5abe-b6d9-e7fd7ff86075 | changelog | pandas | pandas_whatsnew | 0.21.0 | 34 | ### Iteration of Series/Index will now return Python scalars[#](#iteration-of-series-index-will-now-return-python-scalars "Link to this heading")
Previously, when using certain iteration methods for a `Series` with dtype `int` or `float`, you would receive a `numpy` scalar, e.g. a `np.int64`, rather than a Python `int... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
45a4e311-a759-59de-8c27-0050398e1916 | changelog | pandas | pandas_whatsnew | 0.21.0 | 35 | Out[41]: int
```
Furthermore this will now correctly box the results of iteration for [`DataFrame.to_dict()`](../reference/api/pandas.DataFrame.to_dict.html#pandas.DataFrame.to_dict "pandas.DataFrame.to_dict") as well.
```None
In [42]: d = {'a': [1], 'b': ['b']}
In [43]: df = pd.DataFrame(d)
```
Previously:
```Non... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
0da6b1bb-6c8f-5d0d-b266-bc8685a0e8f0 | changelog | pandas | pandas_whatsnew | 0.21.0 | 36 | ```None
In [45]: s = pd.Series([1, 2, 3], index=[False, True, False])
In [46]: s
Out[46]:
False 1
True 2
False 3
Length: 3, dtype: int64
```
```None
In [59]: s.loc[pd.Index([True, False, True])]
Out[59]:
True 2
False 1
False 3
True 2
dtype: int64
```
Current behavior
```None
In [47]: s.loc[... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
781ebf00-0172-5a01-99b9-c02c60f245c5 | changelog | pandas | pandas_whatsnew | 0.21.0 | 37 | ### `PeriodIndex` resampling[#](#periodindex-resampling "Link to this heading")
In previous versions of pandas, resampling a `Series`/`DataFrame` indexed by a `PeriodIndex` returned a `DatetimeIndex` in some cases ([GH 12884](https://github.com/pandas-dev/pandas/issues/12884)). Resampling to a multiplied frequency now... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
1f7512ea-4c1f-5922-aad3-e469fc732ac5 | changelog | pandas | pandas_whatsnew | 0.21.0 | 38 | In [51]: pi = pd.period_range('2017-01', periods=12, freq='M')
In [52]: s = pd.Series(np.arange(12), index=pi)
In [53]: resampled = s.resample('2Q').mean()
In [54]: resampled
Out[54]:
2017Q1 2.5
2017Q3 8.5
Freq: 2Q-DEC, Length: 2, dtype: float64
In [55]: resampled.index
Out[55]: PeriodIndex(['2017Q1', '2017Q... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
b49c27f2-cb55-5706-b65e-a8e3bc48fcef | changelog | pandas | pandas_whatsnew | 0.21.0 | 39 | open high low close
2000-01 0 9 0 9
```
New behavior:
```None
In [56]: pi = pd.period_range(start='2000-01-01', freq='D', periods=10)
In [57]: s = pd.Series(np.arange(10), index=pi)
In [58]: s.resample('H').ohlc()
Out[58]:
open high low close
2000-01-01 00:00 0.0 ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
807480f1-d8eb-5400-bf98-acf9d221fac5 | changelog | pandas | pandas_whatsnew | 0.21.0 | 40 | ### Improved error handling during item assignment in pd.eval[#](#improved-error-handling-during-item-assignment-in-pd-eval "Link to this heading")
[`eval()`](../reference/api/pandas.eval.html#pandas.eval "pandas.eval") will now raise a `ValueError` when item assignment malfunctions, or
inplace operations are specifie... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
86b29427-9dae-5d00-82e2-5151b502f4b4 | changelog | pandas | pandas_whatsnew | 0.21.0 | 41 | ValueError: Cannot assign expression output to target
```
It also used to be possible to evaluate expressions inplace, even if there was no item assignment:
```None
In [4]: pd.eval("1 + 2", target=arr, inplace=True)
Out[4]: 3
```
However, this input does not make much sense because the output is not being assigned t... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
a2695213-52ea-524b-85d1-3e9c16c986e2 | changelog | pandas | pandas_whatsnew | 0.21.0 | 42 | ```None
In [7]: s[1] = True
In [8]: s
Out[8]:
0 1
1 True
2 3
Length: 3, dtype: object
```
Previously, as assignment to a datetimelike with a non-datetimelike would coerce the
non-datetime-like item being assigned ([GH 14145](https://github.com/pandas-dev/pandas/issues/14145)).
```None
In [58]: s = pd.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
b1dc049b-791d-5fb4-961f-94a15b767ab2 | changelog | pandas | pandas_whatsnew | 0.21.0 | 43 | ### MultiIndex constructor with a single level[#](#multiindex-constructor-with-a-single-level "Link to this heading")
The `MultiIndex` constructors no longer squeezes a MultiIndex with all
length-one levels down to a regular `Index`. This affects all the
`MultiIndex` constructors. ([GH 17178](https://github.com/pandas... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
e12aecc3-3dec-5b17-a2be-23136ae01e9b | changelog | pandas | pandas_whatsnew | 0.21.0 | 44 | ### UTC localization with Series[#](#utc-localization-with-series "Link to this heading")
Previously, [`to_datetime()`](../reference/api/pandas.to_datetime.html#pandas.to_datetime "pandas.to_datetime") did not localize datetime `Series` data when `utc=True` was passed. Now, [`to_datetime()`](../reference/api/pandas.to... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
3da36585-96cb-52a1-b315-b45f04578038 | changelog | pandas | pandas_whatsnew | 0.21.0 | 45 | Additionally, DataFrames with datetime columns that were parsed by [`read_sql_table()`](../reference/api/pandas.read_sql_table.html#pandas.read_sql_table "pandas.read_sql_table") and [`read_sql_query()`](../reference/api/pandas.read_sql_query.html#pandas.read_sql_query "pandas.read_sql_query") will also be localized to... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
4f35cb35-a7a3-5a6d-8184-e66c917b4f70 | changelog | pandas | pandas_whatsnew | 0.21.0 | 46 | In previous versions, there were some inconsistencies between the various range functions: [`date_range()`](../reference/api/pandas.date_range.html#pandas.date_range "pandas.date_range"), [`bdate_range()`](../reference/api/pandas.bdate_range.html#pandas.bdate_range "pandas.bdate_range"), [`period_range()`](../reference... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
3c077cf0-59f6-547e-b672-36f9291ff57e | changelog | pandas | pandas_whatsnew | 0.21.0 | 47 | One of the inconsistent behaviors occurred when the `start`, `end` and `period` parameters were all specified, potentially leading to ambiguous ranges. When all three parameters were passed, `interval_range` ignored the `period` parameter, `period_range` ignored the `end` parameter, and the other range functions raised... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
014498c3-8b7b-567b-9248-d4c567f66d50 | changelog | pandas | pandas_whatsnew | 0.21.0 | 48 | ---------------------------------------------------------------------------
ValueError: Of the three parameters: start, end, and periods, exactly two must be specified
In [3]: pd.period_range(start='2017Q1', end='2017Q4', periods=6, freq='Q')
---------------------------------------------------------------------------
... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
ac23766b-9cf0-56c3-90e2-1655c3798749 | changelog | pandas | pandas_whatsnew | 0.21.0 | 49 | In [62]: pd.interval_range(start=0, end=4)
Out[62]: IntervalIndex([(0, 1], (1, 2], (2, 3], (3, 4]], dtype='interval[int64, right]')
```
### No automatic Matplotlib converters[#](#no-automatic-matplotlib-converters "Link to this heading")
pandas no longer registers our `date`, `time`, `datetime`,
`datetime64`, and `Pe... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
9a863562-74a9-56a5-9061-43ece51f9718 | changelog | pandas | pandas_whatsnew | 0.21.0 | 50 | ### Other API changes[#](#other-api-changes "Link to this heading")
* The Categorical constructor no longer accepts a scalar for the `categories` keyword. ([GH 16022](https://github.com/pandas-dev/pandas/issues/16022))
* Accessing a non-existent attribute on a closed `HDFStore` will now
raise an `AttributeError` rat... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
1b337579-f880-5afe-8d27-923bb0a12d44 | changelog | pandas | pandas_whatsnew | 0.21.0 | 51 | * `pandas.HDFStore`’s string representation is now faster and less detailed. For the previous behavior, use `pandas.HDFStore.info()`. ([GH 16503](https://github.com/pandas-dev/pandas/issues/16503)).
* Compression defaults in HDF stores now follow pytables standards. Default is no compression and if `complib` is missing... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
4aa60b94-5dca-5571-a2e2-8029dc9177a7 | changelog | pandas | pandas_whatsnew | 0.21.0 | 52 | * The signature of [`Series.set_axis()`](../reference/api/pandas.Series.set_axis.html#pandas.Series.set_axis "pandas.Series.set_axis") and [`DataFrame.set_axis()`](../reference/api/pandas.DataFrame.set_axis.html#pandas.DataFrame.set_axis "pandas.DataFrame.set_axis") has been changed from `set_axis(axis, labels)` to `se... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
ac273d14-17c1-59ea-9efe-1fb6ef75ca57 | changelog | pandas | pandas_whatsnew | 0.21.0 | 53 | * [`Period`](../reference/api/pandas.Period.html#pandas.Period "pandas.Period") is now immutable, and will now raise an `AttributeError` when a user tries to assign a new value to the `ordinal` or `freq` attributes ([GH 17116](https://github.com/pandas-dev/pandas/issues/17116)).
* [`to_datetime()`](../reference/api/pan... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
5e1f4b17-bf74-5f46-bb22-3658af610a4b | changelog | pandas | pandas_whatsnew | 0.21.0 | 54 | * Renamed non-functional `index` to `index_col` in [`read_stata()`](../reference/api/pandas.read_stata.html#pandas.read_stata "pandas.read_stata") to improve API consistency ([GH 16342](https://github.com/pandas-dev/pandas/issues/16342))
* Bug in [`DataFrame.drop()`](../reference/api/pandas.DataFrame.drop.html#pandas.D... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
dfdd8e53-84ad-58a9-8f85-581da269c6f4 | changelog | pandas | pandas_whatsnew | 0.21.0 | 55 | ## Deprecations[#](#deprecations "Link to this heading")
* `DataFrame.from_csv()` and `Series.from_csv()` have been deprecated in favor of [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") ([GH 4191](https://github.com/pandas-dev/pandas/issues/4191))
* [`read_excel()`](../referenc... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
eb0299b1-c913-5d8f-846b-c52ff50c4e4f | changelog | pandas | pandas_whatsnew | 0.21.0 | 56 | * [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") has deprecated the `tupleize_cols` argument. Column tuples will always be converted to a `MultiIndex` ([GH 17060](https://github.com/pandas-dev/pandas/issues/17060))
* [`DataFrame.to_csv()`](../reference/api/pandas.DataFrame.to_cs... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
bf945fca-2b34-53dd-b792-22b764b0fc7d | changelog | pandas | pandas_whatsnew | 0.21.0 | 57 | * `SeriesGroupBy.nth()` has deprecated `True` in favor of `'all'` for its kwarg `dropna` ([GH 11038](https://github.com/pandas-dev/pandas/issues/11038)).
* `DataFrame.as_blocks()` is deprecated, as this is exposing the internal implementation ([GH 17302](https://github.com/pandas-dev/pandas/issues/17302))
* `pd.TimeGro... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
87510ebd-7eaf-5890-a01d-16e2ba31c655 | changelog | pandas | pandas_whatsnew | 0.21.0 | 58 | * passing `categories` or `ordered` kwargs to [`Series.astype()`](../reference/api/pandas.Series.astype.html#pandas.Series.astype "pandas.Series.astype") is deprecated, in favor of passing a [CategoricalDtype](#whatsnew-0210-enhancements-categorical-dtype) ([GH 17636](https://github.com/pandas-dev/pandas/issues/17636))... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
cb7b4e38-1932-56f1-baea-6980827060de | changelog | pandas | pandas_whatsnew | 0.21.0 | 59 | * `raise_on_error` parameter to [`Series.where()`](../reference/api/pandas.Series.where.html#pandas.Series.where "pandas.Series.where"), [`Series.mask()`](../reference/api/pandas.Series.mask.html#pandas.Series.mask "pandas.Series.mask"), [`DataFrame.where()`](../reference/api/pandas.DataFrame.where.html#pandas.DataFram... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
8d3f564d-a3b7-5e89-bdc8-f58666da959e | changelog | pandas | pandas_whatsnew | 0.21.0 | 60 | * Using [`DataFrame.rename_axis()`](../reference/api/pandas.DataFrame.rename_axis.html#pandas.DataFrame.rename_axis "pandas.DataFrame.rename_axis") and [`Series.rename_axis()`](../reference/api/pandas.Series.rename_axis.html#pandas.Series.rename_axis "pandas.Series.rename_axis") to alter index or column *labels* is now... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
9e83f0fe-4a0a-56c6-aa12-9babb38d89c2 | changelog | pandas | pandas_whatsnew | 0.21.0 | 61 | ### Series.select and DataFrame.select[#](#series-select-and-dataframe-select "Link to this heading")
The `Series.select()` and `DataFrame.select()` methods are deprecated in favor of using `df.loc[labels.map(crit)]` ([GH 12401](https://github.com/pandas-dev/pandas/issues/12401))
```None
In [63]: df = pd.DataFrame({'... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
fb224188-909a-5a6b-bb95-98a8a79636b0 | changelog | pandas | pandas_whatsnew | 0.21.0 | 62 | The behavior of [`Series.argmax()`](../reference/api/pandas.Series.argmax.html#pandas.Series.argmax "pandas.Series.argmax") and [`Series.argmin()`](../reference/api/pandas.Series.argmin.html#pandas.Series.argmin "pandas.Series.argmin") have been deprecated in favor of [`Series.idxmax()`](../reference/api/pandas.Series.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
e146aaf3-5947-5257-af3f-4200fe77b679 | changelog | pandas | pandas_whatsnew | 0.21.0 | 63 | rather than the *position*.
We’ve deprecated the current behavior of `Series.argmax` and
`Series.argmin`. Using either of these will emit a `FutureWarning`. Use
[`Series.idxmax()`](../reference/api/pandas.Series.idxmax.html#pandas.Series.idxmax "pandas.Series.idxmax") if you want the label of the maximum. Use
`Series.... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
0bd42ec0-9a2d-5245-b0a9-0d6a7ca0f144 | changelog | pandas | pandas_whatsnew | 0.21.0 | 64 | * The `pd.options.display.line_width` configuration has been dropped ([GH 2881](https://github.com/pandas-dev/pandas/issues/2881))
* The `pd.options.display.mpl_style` configuration has been dropped ([GH 12190](https://github.com/pandas-dev/pandas/issues/12190))
* `Index` has dropped the `.sym_diff()` method in favor o... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
139e9749-92eb-5bba-8d96-a53b505a0831 | changelog | pandas | pandas_whatsnew | 0.21.0 | 65 | * The function `get_offset_name` has been dropped in favor of the `.freqstr` attribute for an offset ([GH 11834](https://github.com/pandas-dev/pandas/issues/11834))
* pandas no longer tests for compatibility with hdf5-files created with pandas < 0.11 ([GH 17404](https://github.com/pandas-dev/pandas/issues/17404)).
## ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
d55a079f-de4e-554f-91b1-9633592a38f1 | changelog | pandas | pandas_whatsnew | 0.21.0 | 66 | * Improved performance of [`set_categories()`](../reference/api/pandas.Series.cat.set_categories.html#pandas.Series.cat.set_categories "pandas.Series.cat.set_categories") by not materializing the values ([GH 17508](https://github.com/pandas-dev/pandas/issues/17508))
* [`Timestamp.microsecond`](../reference/api/pandas.T... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
3e8ed925-de1d-574e-ba9c-b08762a7f309 | changelog | pandas | pandas_whatsnew | 0.21.0 | 67 | ## Documentation changes[#](#documentation-changes "Link to this heading")
* Several `NaT` method docstrings (e.g. `NaT.ctime()`) were incorrect ([GH 17327](https://github.com/pandas-dev/pandas/issues/17327))
* The documentation has had references to versions < v0.17 removed and cleaned up ([GH 17442](https://github.c... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
68b41c90-1922-5904-89b7-3d562519e2f5 | changelog | pandas | pandas_whatsnew | 0.21.0 | 68 | * Fixed the return type of `IntervalIndex.is_non_overlapping_monotonic` to be a Python `bool` for consistency with similar attributes/methods. Previously returned a `numpy.bool_`. ([GH 17237](https://github.com/pandas-dev/pandas/issues/17237))
* Bug in `IntervalIndex.is_non_overlapping_monotonic` when intervals are clo... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
e65e77bc-649d-5e67-899e-c63e03539b5a | changelog | pandas | pandas_whatsnew | 0.21.0 | 69 | * Bug in `Timedelta` construction and arithmetic that would not propagate the `Overflow` exception ([GH 17367](https://github.com/pandas-dev/pandas/issues/17367))
* Bug in [`astype()`](../reference/api/pandas.DataFrame.astype.html#pandas.DataFrame.astype "pandas.DataFrame.astype") converting to object dtype when passed... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
2dbb48fe-8020-5fdd-9380-4fc0c6c9e227 | changelog | pandas | pandas_whatsnew | 0.21.0 | 70 | * Bug in `DataFrame` and `Series` constructors where `range` objects are converted to `int32` dtype on Windows instead of `int64` ([GH 16804](https://github.com/pandas-dev/pandas/issues/16804))
### Indexing[#](#indexing "Link to this heading")
* When called with a null slice (e.g. `df.iloc[:]`), the `.iloc` and `.loc... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
7056c6f2-2d80-5332-ab99-de57e4d29664 | changelog | pandas | pandas_whatsnew | 0.21.0 | 71 | * Fix `MultiIndex.sort_index()` ordering when `ascending` argument is a list, but not all levels are specified, or are in a different order ([GH 16934](https://github.com/pandas-dev/pandas/issues/16934)).
* Fixes bug where indexing with `np.inf` caused an `OverflowError` to be raised ([GH 16957](https://github.com/pand... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
d23a2461-a867-5805-8281-0656f449f974 | changelog | pandas | pandas_whatsnew | 0.21.0 | 72 | * Bug in `.iloc` when used with inplace addition or assignment and an int indexer on a `MultiIndex` causing the wrong indexes to be read from and written to ([GH 17148](https://github.com/pandas-dev/pandas/issues/17148))
* Bug in `.isin()` in which checking membership in empty `Series` objects raised an error ([GH 1699... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
b8c49999-2c35-5888-9bd1-dad31efaa9ba | changelog | pandas | pandas_whatsnew | 0.21.0 | 73 | * Bug in [`DataFrame.first_valid_index()`](../reference/api/pandas.DataFrame.first_valid_index.html#pandas.DataFrame.first_valid_index "pandas.DataFrame.first_valid_index") and [`DataFrame.last_valid_index()`](../reference/api/pandas.DataFrame.last_valid_index.html#pandas.DataFrame.last_valid_index "pandas.DataFrame.la... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
b3c1f8ba-74e8-5385-abf4-0ea6f39d1258 | changelog | pandas | pandas_whatsnew | 0.21.0 | 74 | ### IO[#](#io "Link to this heading")
* Bug in [`read_hdf()`](../reference/api/pandas.read_hdf.html#pandas.read_hdf "pandas.read_hdf") when reading a timezone aware index from `fixed` format HDFStore ([GH 17618](https://github.com/pandas-dev/pandas/issues/17618))
* Bug in [`read_csv()`](../reference/api/pandas.read_cs... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
26ae54e8-0902-5b96-b012-0789f08f562c | changelog | pandas | pandas_whatsnew | 0.21.0 | 75 | * Bug in [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") in which memory management issues in exception handling, under certain conditions, would cause the interpreter to segfault ([GH 14696](https://github.com/pandas-dev/pandas/issues/14696), [GH 16798](https://github.com/pandas... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
4aada80f-e148-5a25-bcfa-697aeefdd26f | changelog | pandas | pandas_whatsnew | 0.21.0 | 76 | * Bug in [`DataFrame.to_csv()`](../reference/api/pandas.DataFrame.to_csv.html#pandas.DataFrame.to_csv "pandas.DataFrame.to_csv") defaulting to ‘ascii’ encoding in Python 3, instead of ‘utf-8’ ([GH 17097](https://github.com/pandas-dev/pandas/issues/17097))
* Bug in [`read_stata()`](../reference/api/pandas.read_stata.htm... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
1aabefca-c91d-557d-acec-85d97a16006e | changelog | pandas | pandas_whatsnew | 0.21.0 | 77 | * Bug in [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") where automatic delimiter detection caused a `TypeError` to be thrown when a bad line was encountered rather than the correct error message ([GH 13374](https://github.com/pandas-dev/pandas/issues/13374))
* Bug in [`DataFram... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
3d46718d-8746-56e8-8d77-540ffba8d32c | changelog | pandas | pandas_whatsnew | 0.21.0 | 78 | * Bug in [`HDFStore.select()`](../reference/api/pandas.HDFStore.select.html#pandas.HDFStore.select "pandas.HDFStore.select") when reading a contiguous mixed-data table featuring VLArray ([GH 17021](https://github.com/pandas-dev/pandas/issues/17021))
* Bug in `to_json()` where several conditions (including objects with ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
15a78630-3709-5d48-966e-c3acf8db3e0e | changelog | pandas | pandas_whatsnew | 0.21.0 | 79 | * Line plots no longer assume monotonic x data when calculating xlims, they show the entire lines now even for unsorted x data. ([GH 11310](https://github.com/pandas-dev/pandas/issues/11310), [GH 11471](https://github.com/pandas-dev/pandas/issues/11471))
* With matplotlib 2.0.0 and above, calculation of x limits for li... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
2de8140b-1f76-5063-8938-70794907bb48 | changelog | pandas | pandas_whatsnew | 0.21.0 | 80 | * Bug in [`infer_freq()`](../reference/api/pandas.infer_freq.html#pandas.infer_freq "pandas.infer_freq") causing indices with 2-day gaps during the working week to be wrongly inferred as business daily ([GH 16624](https://github.com/pandas-dev/pandas/issues/16624))
* Bug in `.rolling(...).quantile()` which incorrectly ... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
7136c84e-a53b-5202-97d1-f5cb800204e6 | changelog | pandas | pandas_whatsnew | 0.21.0 | 81 | * Bug in `Series.resample(...).apply()` where an empty `Series` modified the source index and did not return the name of a `Series` ([GH 14313](https://github.com/pandas-dev/pandas/issues/14313))
* Bug in `.rolling(...).apply(...)` with a `DataFrame` with a `DatetimeIndex`, a `window` of a timedelta-convertible and `mi... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
890b2789-efce-59a5-b776-77ba7df14eaf | changelog | pandas | pandas_whatsnew | 0.21.0 | 82 | * Bug in `DataFrame.groupby` where spurious warning is raised when `Grouper` object is used to override ambiguous column name ([GH 17383](https://github.com/pandas-dev/pandas/issues/17383))
* Bug in `TimeGrouper` differs when passes as a list and as a scalar ([GH 17530](https://github.com/pandas-dev/pandas/issues/17530... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
f2dbdbbe-e54b-591b-b7e8-25fd3104c1d7 | changelog | pandas | pandas_whatsnew | 0.21.0 | 83 | * Bug in `make_sparse()` treating two numeric/boolean data, which have same bits, as same when array `dtype` is `object` ([GH 17574](https://github.com/pandas-dev/pandas/issues/17574))
* `SparseArray.all()` and `SparseArray.any()` are now implemented to handle `SparseArray`, these were used but not implemented ([GH 175... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
6237cc95-4f62-51b4-8a05-102f09cd1a8b | changelog | pandas | pandas_whatsnew | 0.21.0 | 84 | * Bug when using `isin()` on a large object series and large comparison array ([GH 16012](https://github.com/pandas-dev/pandas/issues/16012))
* Fixes regression from 0.20, [`Series.aggregate()`](../reference/api/pandas.Series.aggregate.html#pandas.Series.aggregate "pandas.Series.aggregate") and [`DataFrame.aggregate()`... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
ebfa98d8-2a34-5a38-8a58-cbdb3c1e2838 | changelog | pandas | pandas_whatsnew | 0.21.0 | 85 | * [`Series.argmin()`](../reference/api/pandas.Series.argmin.html#pandas.Series.argmin "pandas.Series.argmin"), [`Series.argmax()`](../reference/api/pandas.Series.argmax.html#pandas.Series.argmax "pandas.Series.argmax"), and their counterparts on `DataFrame` and groupby objects work correctly with floating point data th... | large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.21.0.md |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.