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
eb7e65af-f1f9-5c3f-991b-c9454cb8115a
changelog
pandas
pandas_whatsnew
0.18.0
66
* Bug in `Series.plot` failing when index has a `CustomBusinessDay` frequency ([GH 7222](https://github.com/pandas-dev/pandas/issues/7222)). * Bug in `.to_sql` for `datetime.time` values with sqlite fallback ([GH 8341](https://github.com/pandas-dev/pandas/issues/8341)) * Bug in `read_excel` failing to read data with on...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md
6dd9ead4-7345-5e06-9996-bb50289699e8
changelog
pandas
pandas_whatsnew
0.18.0
67
* Bug in `.read_csv` where strings like `'2E'` are treated as valid floats ([GH 12237](https://github.com/pandas-dev/pandas/issues/12237)) * Bug in building *pandas* with debugging symbols ([GH 12123](https://github.com/pandas-dev/pandas/issues/12123)) * Removed `millisecond` property of `DatetimeIndex`. This would alw...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md
61a719d8-a516-58cf-bf0d-83e4b04cfdf1
changelog
pandas
pandas_whatsnew
0.18.0
68
* Bug in `to_msgpack` and `from_msgpack` which did not correctly serialize or deserialize `NaT` ([GH 12307](https://github.com/pandas-dev/pandas/issues/12307)). * Bug in `.skew` and `.kurt` due to roundoff error for highly similar values ([GH 11974](https://github.com/pandas-dev/pandas/issues/11974)) * Bug in `Timestam...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md
06088bef-3f7f-5137-a9ec-c17260a567f0
changelog
pandas
pandas_whatsnew
0.18.0
69
* Bug when initializing categorical series with a scalar value. ([GH 12336](https://github.com/pandas-dev/pandas/issues/12336)) * Bug when specifying a UTC `DatetimeIndex` by setting `utc=True` in `.to_datetime` ([GH 11934](https://github.com/pandas-dev/pandas/issues/11934)) * Bug when increasing the buffer size of CSV...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md
475f902e-d2cd-5f1a-b451-8948cf649334
changelog
pandas
pandas_whatsnew
0.18.0
70
* Dr-Irv + * Erik M. Bray + * Evan Wright * Francis T. O’Donovan + * Frank Cleary + * Gianluca Rossi * Graham Jeffries + * Guillaume Horel * Henry Hammond + * Isaac Schwabacher + * Jean-Mathieu Deschenes * Jeff Reback * Joe Jevnik + * John Freeman + * John Fremlin + * Jonas Hoersch + * Joris Van den Bossche * Joris Van...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md
47431383-11d3-5f04-a5aa-88e161d0333f
changelog
pandas
pandas_whatsnew
0.18.0
71
* Yuval Langer + * alex argunov + * behzad nouri * boombard + * brian-pantano + * chromy + * daniel + * dgram0 + * gfyoung + * hack-c + * hcontrast + * jfoo + * kaustuv deolal + * llllllllll * ranarag + * rockg * scls19fr * seales + * sinhrks * srib + * surveymedia.ca + * tworec +
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.0.md
04e4a4bb-2526-59b1-9928-1d112e6b67a6
changelog
pandas
pandas_whatsnew
0.18.1
0
# What's new in pandas 0.18.1 Source: https://pandas.pydata.org/docs/whatsnew/v0.18.1.html # Version 0.18.1 (May 3, 2016)[#](#version-0-18-1-may-3-2016 "Link to this heading") This is a minor bug-fix release from 0.18.0 and includes a large number of bug fixes along with several new features, enhancements, and perfo...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
aa6aeddc-45ef-509e-95fd-49ae61dc2596
changelog
pandas
pandas_whatsnew
0.18.1
1
* Expanded the [Tutorials section](../getting_started/tutorials.html#tutorial-modern) with a feature on modern pandas, courtesy of [@TomAugsburger](https://twitter.com/TomAugspurger). ([GH 13045](https://github.com/pandas-dev/pandas/issues/13045)). What’s new in v0.18.1 * [New features](#new-features) + [Custom bu...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
c160af36-e1d6-5da6-bbde-98b0928b2100
changelog
pandas
pandas_whatsnew
0.18.1
2
* [API changes](#api-changes) + [Method `.groupby(..).nth()` changes](#method-groupby-nth-changes) + [NumPy function compatibility](#numpy-function-compatibility) + [Using `.apply` on GroupBy resampling](#using-apply-on-groupby-resampling) + [Changes in `read_csv` exceptions](#changes-in-read-csv-exceptions) ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
b1b06952-427c-5023-a9ba-a7e092531e5e
changelog
pandas
pandas_whatsnew
0.18.1
3
In [1]: from pandas.tseries.offsets import CustomBusinessHour In [2]: from pandas.tseries.holiday import USFederalHolidayCalendar In [3]: bhour_us = CustomBusinessHour(calendar=USFederalHolidayCalendar()) ``` Friday before MLK Day ```None In [4]: import datetime In [5]: dt = datetime.datetime(2014, 1, 17, 15) In ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
f8817191-d81f-5a68-9b1a-4d88e32fd4c0
changelog
pandas
pandas_whatsnew
0.18.1
4
You can now use `.rolling(..)` and `.expanding(..)` as methods on groupbys. These return another deferred object (similar to what `.rolling()` and `.expanding()` do on ungrouped pandas objects). You can then operate on these `RollingGroupby` objects in a similar manner. Previously you would have to do this to get a ro...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
bda16fcd-0c71-56bd-aebd-5c212de1c2e7
changelog
pandas
pandas_whatsnew
0.18.1
5
23 21.5 24 22.5 25 23.5 26 24.5 27 25.5 28 26.5 29 27.5 30 28.5 31 29.5 3 32 NaN 33 NaN 34 NaN 35 33.5 36 34.5 37 35.5 38 36.5 39 37.5 Name: B, dtype: float64 ``` Now you can do: ```None In [10]: df.groupby("A").rol...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
26208ad1-15c9-553b-a5a9-ae0c295ee7c3
changelog
pandas
pandas_whatsnew
0.18.1
6
2016-01-24 2 8 [4 rows x 2 columns] ``` ```None In[1]: df.groupby("group").apply(lambda x: x.resample("1D").ffill()) Out[1]: group val group date 1 2016-01-03 1 5 2016-01-04 1 5 2016-01-05 1 5 2016-01-06 1 5 2016-01-07 1 5 ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
bdfefcde-3518-544a-b0a2-ad666c64af05
changelog
pandas
pandas_whatsnew
0.18.1
7
2 2016-01-17 2 7 2016-01-18 2 7 2016-01-19 2 7 2016-01-20 2 7 2016-01-21 2 7 2016-01-22 2 7 2016-01-23 2 7 2016-01-24 2 8 ``` ### Method chaining improvements[#](#method-chaining-improvements "Link to this hea...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
71128c98-0385-50bb-bb1d-925c9d9cbe2f
changelog
pandas
pandas_whatsnew
0.18.1
8
Out[14]: A B C 0 11 14 7 1 12 5 8 2 13 6 9 [3 rows x 3 columns] ``` #### Methods `.loc[]`, `.iloc[]`, `.ix[]`[#](#methods-loc-iloc-ix "Link to this heading") These can accept a callable, and a tuple of callable as a slicer. The callable can return a valid boolean indexer or anything which is valid...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
c4fc13df-fe74-52d5-9b2a-28f84509edcf
changelog
pandas
pandas_whatsnew
0.18.1
9
Using these methods / indexers, you can chain data selection operations without using temporary variable. ```None In [18]: bb = pd.read_csv("data/baseball.csv", index_col="id") In [19]: (bb.groupby(["year", "team"]).sum(numeric_only=True).loc[lambda df: df.r > 100]) Out[19]: stint g ab r h X2...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
64531a1f-1d15-5f2e-936a-c5e4a11970fe
changelog
pandas
pandas_whatsnew
0.18.1
10
TEX 2 198 729 115 200 40 ... 140.0 4.0 5.0 2.0 8.0 16.0 TOR 4 459 1408 187 378 96 ... 265.0 16.0 12.0 4.0 16.0 38.0 [8 rows x 18 columns] ``` ### Partial string indexing on `DatetimeIndex` when part of a `MultiIndex`[#](#partial-string-indexing-on-datetimeindex-wh...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
d631aed4-19df-598f-a253-92f919355ebb
changelog
pandas
pandas_whatsnew
0.18.1
11
... ... 2013-01-04 12:00:00 b 0.271860 2013-01-05 00:00:00 a -0.424972 b 0.567020 2013-01-05 12:00:00 a 0.276232 b -1.087401 [20 rows x 1 columns] In [22]: dft2.loc["2013-01-05"] Out[22]: A 2013-01-05 00:00:00 a -0.424972...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
63b2272a-f0d1-5c7c-bcf3-3b44f85dec55
changelog
pandas
pandas_whatsnew
0.18.1
12
Out[29]: A a 2013-01-05 00:00:00 -0.424972 2013-01-05 12:00:00 0.276232 b 2013-01-05 00:00:00 0.567020 2013-01-05 12:00:00 -1.087401 [4 rows x 1 columns] ``` ### Assembling datetimes[#](#assembling-datetimes "Link to this heading") `pd.to_datetime()` has gained the ability to asse...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
c3196c05-e348-5244-9efb-72af887a2775
changelog
pandas
pandas_whatsnew
0.18.1
13
1 2016-03-05 Length: 2, dtype: datetime64[ns] ``` ### Other enhancements[#](#other-enhancements "Link to this heading") * `pd.read_csv()` now supports `delim_whitespace=True` for the Python engine ([GH 12958](https://github.com/pandas-dev/pandas/issues/12958)) * `pd.read_csv()` now supports opening ZIP files that c...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
b8aadd29-35ff-563f-9426-64fda0f10139
changelog
pandas
pandas_whatsnew
0.18.1
14
* `pd.read_msgpack()` now supports serializing and de-serializing categoricals with msgpack ([GH 12573](https://github.com/pandas-dev/pandas/issues/12573)) * `.to_json()` now supports `NDFrames` that contain categorical and sparse data ([GH 10778](https://github.com/pandas-dev/pandas/issues/10778)) * `interpolate()` no...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
ad64a5ec-4045-5a67-9941-e1a91a1bcac0
changelog
pandas
pandas_whatsnew
0.18.1
15
# default, allow_fill=True, fill_value=None In [25]: idx.take([2, -1]) Out[25]: Index([3.0, 4.0], dtype='float64') In [26]: idx.take([2, -1], fill_value=True) Out[26]: Index([3.0, nan], dtype='float64') ``` * `Index` now supports `.str.get_dummies()` which returns `MultiIndex`, see [Creating Indicator Vari...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
000b33ad-15e2-5725-9072-5794523acfce
changelog
pandas
pandas_whatsnew
0.18.1
16
* `.resample(..).interpolate()` is now supported ([GH 12925](https://github.com/pandas-dev/pandas/issues/12925)) * `.isin()` now accepts passed `sets` ([GH 12988](https://github.com/pandas-dev/pandas/issues/12988)) ## Sparse changes[#](#sparse-changes "Link to this heading") These changes conform sparse handling to r...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
cf8d53c5-a28a-539f-864d-10df239c4a08
changelog
pandas
pandas_whatsnew
0.18.1
17
* Bug in `SparseArray[]` indexing with tuples are not handled properly ([GH 12966](https://github.com/pandas-dev/pandas/issues/12966)) * Bug in `SparseSeries.loc[]` with list-like input raises `TypeError` ([GH 10560](https://github.com/pandas-dev/pandas/issues/10560)) * Bug in `SparseSeries.iloc[]` with scalar input ma...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
0081c11e-433d-51dc-bead-0beaed364180
changelog
pandas
pandas_whatsnew
0.18.1
18
* Bug in `SparseArray` pow calculates `1 ** np.nan` as `np.nan` which must be 1 ([GH 12910](https://github.com/pandas-dev/pandas/issues/12910)) * Bug in `SparseArray` comparison output may incorrect result or raise `ValueError` ([GH 12971](https://github.com/pandas-dev/pandas/issues/12971)) * Bug in `SparseSeries.__rep...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
10e069a1-0757-5b35-b558-e13e3ebee632
changelog
pandas
pandas_whatsnew
0.18.1
19
* Bug in `SparseSeries.value_counts()` does not count `fill_value` ([GH 6749](https://github.com/pandas-dev/pandas/issues/6749)) * Bug in `SparseArray.to_dense()` does not preserve `dtype` ([GH 10648](https://github.com/pandas-dev/pandas/issues/10648)) * Bug in `SparseArray.to_dense()` incorrectly handle `fill_value` (...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
bcb97f58-540d-5540-9259-72b10564ea3f
changelog
pandas
pandas_whatsnew
0.18.1
20
## API changes[#](#api-changes "Link to this heading") ### Method `.groupby(..).nth()` changes[#](#method-groupby-nth-changes "Link to this heading") The index in `.groupby(..).nth()` output is now more consistent when the `as_index` argument is passed ([GH 11039](https://github.com/pandas-dev/pandas/issues/11039)): ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
2da17fa3-e59b-515e-aeb2-f9501b502943
changelog
pandas
pandas_whatsnew
0.18.1
21
Furthermore, previously, a `.groupby` would always sort, regardless if `sort=False` was passed with `.nth()`. ```None In [33]: np.random.seed(1234) In [34]: df = pd.DataFrame(np.random.randn(100, 2), columns=["a", "b"]) In [35]: df["c"] = np.random.randint(0, 4, 100) ``` Previous behavior: ```None In [4]: df.group...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
3c6bf7dc-aa62-52b4-aa85-9dbbd383b798
changelog
pandas
pandas_whatsnew
0.18.1
22
21 0.036142 -2.074978 1 [4 rows x 3 columns] ``` ### NumPy function compatibility[#](#numpy-function-compatibility "Link to this heading") Compatibility between pandas array-like methods (e.g. `sum` and `take`) and their `numpy` counterparts has been greatly increased by augmenting the signatures of the `pandas` m...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
b1823898-81bd-5d8a-b2e1-8485ce898e4f
changelog
pandas
pandas_whatsnew
0.18.1
23
An example of this signature augmentation is illustrated below: ```None sp = pd.SparseDataFrame([1, 2, 3]) sp ``` Previous behaviour: ```None In [2]: np.cumsum(sp, axis=0) ... TypeError: cumsum() takes at most 2 arguments (4 given) ``` New behaviour: ```None np.cumsum(sp, axis=0) ``` ### Using `.apply` on GroupBy...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
c338424f-5cce-5df2-b9bd-55bd9a027f92
changelog
pandas
pandas_whatsnew
0.18.1
24
Out[1]: ... TypeError: cannot concatenate a non-NDFrame object # Output is a Series In [2]: df.groupby(pd.TimeGrouper(key='date', ...: freq='M')).apply(lambda x: x[['value']].sum()) Out[2]: date 2000-10-31 value 10 2000-11-30 value 13 dtype: int64 ``` New behavior: ```None # Outp...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
1388601a-0c66-5721-b417-164fc7e136ce
changelog
pandas
pandas_whatsnew
0.18.1
25
`EmptyDataError`, a subclass of `ValueError`, in response to empty columns or header ([GH 12493](https://github.com/pandas-dev/pandas/issues/12493), [GH 12506](https://github.com/pandas-dev/pandas/issues/12506)) Previous behaviour: ```None In [1]: import io In [2]: df = pd.read_csv(io.StringIO(''), engine='c') ... V...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
11d870e0-0836-5993-b9e5-85ec651bfa02
changelog
pandas
pandas_whatsnew
0.18.1
26
* A `CParserError` is now raised instead of a generic `Exception` in `read_csv` when the `c` engine cannot parse a column ([GH 12506](https://github.com/pandas-dev/pandas/issues/12506)) * A `ValueError` is now raised instead of a generic `Exception` in `read_csv` when the `c` engine encounters a `NaN` value in an integ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
d669ee3b-ebae-5d0a-b05d-80ee0f873a7e
changelog
pandas
pandas_whatsnew
0.18.1
27
### Method `to_datetime` error changes[#](#method-to-datetime-error-changes "Link to this heading") Bugs in `pd.to_datetime()` when passing a `unit` with convertible entries and `errors='coerce'` or non-convertible with `errors='ignore'`. Furthermore, an `OutOfBoundsDateime` exception will be raised when an out-of-ran...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
b1a3422e-44c9-5234-b5c1-57be36ce270c
changelog
pandas
pandas_whatsnew
0.18.1
28
Out[2]: Timestamp('2014-12-31 16:31:00') In [3]: pd.to_datetime(11111111, unit='D', errors='ignore') Out[3]: 11111111 In [4]: pd.to_datetime(11111111, unit='D', errors='raise') OutOfBoundsDatetime: cannot convert input with unit 'D' ``` ### Other API changes[#](#other-api-changes "Link to this heading") * `.swaplev...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
52de9677-cc7b-5ce3-820a-3efc5c71a9e4
changelog
pandas
pandas_whatsnew
0.18.1
29
* `Series.apply` for category dtype now applies the passed function to each of the `.categories` (and not the `.codes`), and returns a `category` dtype if possible ([GH 12473](https://github.com/pandas-dev/pandas/issues/12473)) * `read_csv` will now raise a `TypeError` if `parse_dates` is neither a boolean, list, or di...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
99c9cd7b-ef28-5574-a10c-dbeb85f3358f
changelog
pandas
pandas_whatsnew
0.18.1
30
* Provide a proper `__name__` and `__qualname__` attributes for generic functions ([GH 12021](https://github.com/pandas-dev/pandas/issues/12021)) * `pd.concat(ignore_index=True)` now uses `RangeIndex` as default ([GH 12695](https://github.com/pandas-dev/pandas/issues/12695)) * `pd.merge()` and `DataFrame.join()` will s...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
0289e910-26e2-59dd-9c1c-b527ba00c28a
changelog
pandas
pandas_whatsnew
0.18.1
31
* The method name `Categorical.sort()` is deprecated in favor of `Categorical.sort_values()` ([GH 12882](https://github.com/pandas-dev/pandas/issues/12882)) ## Performance improvements[#](#performance-improvements "Link to this heading") * Improved speed of SAS reader ([GH 12656](https://github.com/pandas-dev/pandas/...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
f3afb796-61fe-5b0a-ad40-b298bdf8c182
changelog
pandas
pandas_whatsnew
0.18.1
32
* Improved performance of `Period` construction and time series plotting ([GH 12903](https://github.com/pandas-dev/pandas/issues/12903), [GH 11831](https://github.com/pandas-dev/pandas/issues/11831)). * Improved performance of `.str.encode()` and `.str.decode()` methods ([GH 13008](https://github.com/pandas-dev/pandas/...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
1688caaf-f421-5868-971d-704f568692ba
changelog
pandas
pandas_whatsnew
0.18.1
33
* Bug in `Period` and `PeriodIndex` creation raises `KeyError` if `freq="Minute"` is specified. Note that “Minute” freq is deprecated in v0.17.0, and recommended to use `freq="T"` instead ([GH 11854](https://github.com/pandas-dev/pandas/issues/11854)) * Bug in `.resample(...).count()` with a `PeriodIndex` always raisin...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
e39d15f6-3366-5e99-aed0-83d4d1596b6b
changelog
pandas
pandas_whatsnew
0.18.1
34
* Bugs in concatenation with a coercible dtype was too aggressive, resulting in different dtypes in output formatting when an object was longer than `display.max_rows` ([GH 12411](https://github.com/pandas-dev/pandas/issues/12411), [GH 12045](https://github.com/pandas-dev/pandas/issues/12045), [GH 11594](https://github...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
5a2b19cc-4aff-56d5-96bb-386a7364d098
changelog
pandas
pandas_whatsnew
0.18.1
35
* Bug in round tripping an integer based index in `.to_json()/.read_json()` when `orient='index'` (the default) ([GH 12866](https://github.com/pandas-dev/pandas/issues/12866)) * Bug in plotting `Categorical` dtypes cause error when attempting stacked bar plot ([GH 13019](https://github.com/pandas-dev/pandas/issues/1301...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
bda816a1-11c0-5e0d-8f94-8f5039c8c2ad
changelog
pandas
pandas_whatsnew
0.18.1
36
* Bug fixes in various encoding and header processing issues in `pd.read_sas()` ([GH 12659](https://github.com/pandas-dev/pandas/issues/12659), [GH 12654](https://github.com/pandas-dev/pandas/issues/12654), [GH 12647](https://github.com/pandas-dev/pandas/issues/12647), [GH 12809](https://github.com/pandas-dev/pandas/is...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
83911483-07c8-5417-966c-c88409037583
changelog
pandas
pandas_whatsnew
0.18.1
37
* Bug in `DataFrame.to_json` with unsupported dtype not passed to default handler ([GH 12554](https://github.com/pandas-dev/pandas/issues/12554)). * Bug in `.align` not returning the sub-class ([GH 12983](https://github.com/pandas-dev/pandas/issues/12983)) * Bug in aligning a `Series` with a `DataFrame` ([GH 13037](htt...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
124bdcf0-e7bf-5eee-9c46-30636bd29438
changelog
pandas
pandas_whatsnew
0.18.1
38
* Bug in `Timedelta.min` and `Timedelta.max`, the properties now report the true minimum/maximum `timedeltas` as recognized by pandas. See the [documentation](../user_guide/timedeltas.html#timedeltas-limitations). ([GH 12727](https://github.com/pandas-dev/pandas/issues/12727)) * Bug in `.quantile()` with interpolation ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
02ff574a-ecd7-58b4-b5c5-12f103ad170f
changelog
pandas
pandas_whatsnew
0.18.1
39
* Bug in equality testing with a `Categorical` in a `DataFrame` ([GH 12564](https://github.com/pandas-dev/pandas/issues/12564)) * Bug in `GroupBy.first()`, `.last()` returns incorrect row when `TimeGrouper` is used ([GH 7453](https://github.com/pandas-dev/pandas/issues/7453)) * Bug in `pd.read_csv()` with the `c` engin...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
cb0598dc-2cb7-52c5-8941-76e99dff7f01
changelog
pandas
pandas_whatsnew
0.18.1
40
* Bug in `Series.value_counts()` loses timezone info ([GH 12835](https://github.com/pandas-dev/pandas/issues/12835)) * Bug in `Series.value_counts(normalize=True)` with `Categorical` raises `UnboundLocalError` ([GH 12835](https://github.com/pandas-dev/pandas/issues/12835)) * Bug in `Panel.fillna()` ignoring `inplace=Tr...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
1ea1a928-4fd4-5808-826d-f169f6343dbb
changelog
pandas
pandas_whatsnew
0.18.1
41
* Clean in `.rolling.min` and `.rolling.max` to enhance dtype handling ([GH 12373](https://github.com/pandas-dev/pandas/issues/12373)) * Bug in `groupby` where complex types are coerced to float ([GH 12902](https://github.com/pandas-dev/pandas/issues/12902)) * Bug in `Series.map` raises `TypeError` if its dtype is `cat...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
93748fc8-2826-50b6-963c-dc75095c2efc
changelog
pandas
pandas_whatsnew
0.18.1
42
* Bug in `.str` accessor methods may raise `ValueError` if input has `name` and the result is `DataFrame` or `MultiIndex` ([GH 12617](https://github.com/pandas-dev/pandas/issues/12617)) * Bug in `DataFrame.last_valid_index()` and `DataFrame.first_valid_index()` on empty frames ([GH 12800](https://github.com/pandas-dev/...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
c52c7515-b2e1-55ce-83a5-4d405f28b917
changelog
pandas
pandas_whatsnew
0.18.1
43
* Bug in `.plot.bar` alignment when `width` is specified with `int` ([GH 12979](https://github.com/pandas-dev/pandas/issues/12979)) * Bug in `fill_value` is ignored if the argument to a binary operator is a constant ([GH 12723](https://github.com/pandas-dev/pandas/issues/12723)) * Bug in `pd.read_html()` when using bs4...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
9c958143-ec50-5d7b-bce5-54ef8b039934
changelog
pandas
pandas_whatsnew
0.18.1
44
* Bug in `Series.name` when `name` attribute can be a hashable type ([GH 12610](https://github.com/pandas-dev/pandas/issues/12610)) * Bug in `.describe()` resets categorical columns information ([GH 11558](https://github.com/pandas-dev/pandas/issues/11558)) * Bug where `loffset` argument was not applied when calling `r...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
eaaa4a05-4324-56c7-bcf3-3807ef76400b
changelog
pandas
pandas_whatsnew
0.18.1
45
## Contributors[#](#contributors "Link to this heading") A total of 60 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time. * Andrew Fiore-Gartland + * Bastiaan + * Benoît Vinot + * Brandon Rhodes + * DaCoEx + * Drew Fustin + * Ernesto Freitas + * Filip ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
aa577e7e-094d-508d-858f-922362d5d8b4
changelog
pandas
pandas_whatsnew
0.18.1
46
* chinskiy + * gfyoung * jeps-journal + * jonaslb + * kotrfa + * nileracecrew + * onesandzeroes * rs2 + * sinhrks * tsdlovell +
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.18.1.md
15ef0697-7e40-5a4a-b90a-be276c702554
changelog
pandas
pandas_whatsnew
0.19.0
0
# What's new in pandas 0.19.0 Source: https://pandas.pydata.org/docs/whatsnew/v0.19.0.html # Version 0.19.0 (October 2, 2016)[#](#version-0-19-0-october-2-2016 "Link to this heading") This is a major release from 0.18.1 and includes number of API changes, several new features, enhancements, and performance improveme...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
166458da-34b1-56c7-881f-e8c8f932d43e
changelog
pandas
pandas_whatsnew
0.19.0
1
* A function `union_categorical()` has been added for combining categoricals, see [here](#whatsnew-0190-enhancements-union-categoricals) * `PeriodIndex` now has its own `period` dtype, and changed to be more consistent with other `Index` classes. See [here](#whatsnew-0190-api-period) * Sparse data structures gained enh...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
8ef0fbe5-5f9f-568e-a721-2b26bba06b9c
changelog
pandas
pandas_whatsnew
0.19.0
2
pandas >= 0.19.0 will no longer silence numpy ufunc warnings upon import, see [here](#whatsnew-0190-errstate). What’s new in v0.19.0 * [New features](#new-features) + [Function `merge_asof` for asof-style time-series joining](#function-merge-asof-for-asof-style-time-series-joining) + [Method `.rolling()` is now ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
f3b6bba2-2859-5c34-91ce-195241441d86
changelog
pandas
pandas_whatsnew
0.19.0
3
+ [Downcast values to smallest possible dtype in `to_numeric`](#downcast-values-to-smallest-possible-dtype-in-to-numeric) + [pandas development API](#pandas-development-api) + [Other enhancements](#other-enhancements) * [API changes](#api-changes) + [`Series.tolist()` will now return Python types](#series-toli...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
a5e94070-0998-5567-b6d3-8d32d58f44e5
changelog
pandas
pandas_whatsnew
0.19.0
4
- [The `PeriodIndex` now has `period` dtype](#the-periodindex-now-has-period-dtype) - [`Period('NaT')` now returns `pd.NaT`](#period-nat-now-returns-pd-nat) - [`PeriodIndex.values` now returns array of `Period` object](#periodindex-values-now-returns-array-of-period-object) + [Index `+` / `-` no longer us...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
eea60885-77e0-5099-a467-fe02d984793d
changelog
pandas
pandas_whatsnew
0.19.0
5
- [Operators now preserve dtypes](#operators-now-preserve-dtypes) - [Other sparse fixes](#other-sparse-fixes) + [Indexer dtype changes](#indexer-dtype-changes) + [Other API changes](#other-api-changes) * [Deprecations](#deprecations) * [Removal of prior version deprecations/changes](#removal-of-prior-versio...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
34122bad-b4ba-5412-b334-4ebda755ce0c
changelog
pandas
pandas_whatsnew
0.19.0
6
support asof style joining of time-series ([GH 1870](https://github.com/pandas-dev/pandas/issues/1870), [GH 13695](https://github.com/pandas-dev/pandas/issues/13695), [GH 13709](https://github.com/pandas-dev/pandas/issues/13709), [GH 13902](https://github.com/pandas-dev/pandas/issues/13902)). Full documentation is [her...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
99ce91db-3a05-59fa-ab1d-40cbb2b51228
changelog
pandas
pandas_whatsnew
0.19.0
7
We typically want to match exactly when possible, and use the most recent value otherwise. ```None In [5]: pd.merge_asof(left, right, on="a") Out[5]: a left_val right_val 0 1 a 1 1 5 b 3 2 10 c 7 [3 rows x 3 columns] ``` We can also match rows ONLY with prio...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
d22ed7a6-40c5-5f5d-88d7-f949e2e39fd8
changelog
pandas
pandas_whatsnew
0.19.0
8
...: "20160525 13:30:00.048", ...: "20160525 13:30:00.048", ...: ] ...: ), ...: "ticker": ["MSFT", "MSFT", "GOOG", "GOOG", "AAPL"], ...: "price": [51.95, 51.95, 720.77, 720.92, 98.00], ...: "quantity": [75, 155, 100, 100, 1...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
000e3ce5-4c11-5131-bbb3-09efb0d37ce2
changelog
pandas
pandas_whatsnew
0.19.0
9
...: "ticker": ["GOOG", "MSFT", "MSFT", "MSFT", "GOOG", "AAPL", "GOOG", "MSFT"], ...: "bid": [720.50, 51.95, 51.97, 51.99, 720.50, 97.99, 720.50, 52.01], ...: "ask": [720.93, 51.96, 51.98, 52.00, 720.93, 98.01, 720.88, 52.03], ...: }, ...: columns=["time", "ticker", "bid",...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
80b272cd-d5b0-57b7-9485-066fb5fd5539
changelog
pandas
pandas_whatsnew
0.19.0
10
4 2016-05-25 13:30:00.048 GOOG 720.50 720.93 5 2016-05-25 13:30:00.049 AAPL 97.99 98.01 6 2016-05-25 13:30:00.072 GOOG 720.50 720.88 7 2016-05-25 13:30:00.075 MSFT 52.01 52.03 [8 rows x 4 columns] ``` An asof merge joins on the `on`, typically a datetimelike field, which is ordered, and in this ca...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
1e3029a9-0b09-5c6e-ad4d-6e9a90479296
changelog
pandas
pandas_whatsnew
0.19.0
11
This returns a merged DataFrame with the entries in the same order as the original left passed DataFrame (`trades` in this case), with the fields of the `quotes` merged. ### Method `.rolling()` is now time-series aware[#](#method-rolling-is-now-time-series-aware "Link to this heading") `.rolling()` objects are now ti...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
b8f15d14-4a83-5292-b446-36da078c3fec
changelog
pandas
pandas_whatsnew
0.19.0
12
This is a regular frequency index. Using an integer window parameter works to roll along the window frequency. ```None In [14]: dft.rolling(2).sum() Out[14]: B 2013-01-01 09:00:00 NaN 2013-01-01 09:00:01 1.0 2013-01-01 09:00:02 3.0 2013-01-01 09:00:03 NaN 2013-01-01 09:00:04 NaN [5 rows x...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
33969cbc-ede3-5b40-b884-d5db284f3f19
changelog
pandas
pandas_whatsnew
0.19.0
13
In [17]: dft = pd.DataFrame( ....: {"B": [0, 1, 2, np.nan, 4]}, ....: index=pd.Index( ....: [ ....: pd.Timestamp("20130101 09:00:00"), ....: pd.Timestamp("20130101 09:00:02"), ....: pd.Timestamp("20130101 09:00:03"), ....: pd.Timestamp...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
b2336925-3a1e-54cc-b8b5-e420c6950c0c
changelog
pandas
pandas_whatsnew
0.19.0
14
Using the time-specification generates variable windows for this sparse data. ```None In [20]: dft.rolling("2s").sum() Out[20]: B foo 2013-01-01 09:00:00 0.0 2013-01-01 09:00:02 1.0 2013-01-01 09:00:03 3.0 2013-01-01 09:00:05 NaN 2013-01-01 09:00:06 4.0 [5 rows x 1 co...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
82f892ed-24a1-59b0-ad0b-8957b8d151b1
changelog
pandas
pandas_whatsnew
0.19.0
15
### Method `read_csv` has improved support for duplicate column names[#](#method-read-csv-has-improved-support-for-duplicate-column-names "Link to this heading") [Duplicate column names](../user_guide/io.html#io-dupe-names) are now supported in [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pand...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
a2073e87-b437-540f-aebf-06cba51e769b
changelog
pandas
pandas_whatsnew
0.19.0
16
ValueError Traceback (most recent call last) Cell In[26], line 1 ----> 1 pd.read_csv(StringIO(data), names=names) File ~/work/pandas/pandas/pandas/io/parsers/readers.py:1026, in read_csv(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, dtype, engine, converters, tru...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
18cecc23-4523-57e3-a92b-f0c016221569
changelog
pandas
pandas_whatsnew
0.19.0
17
-> 1026 return _read(filepath_or_buffer, kwds) File ~/work/pandas/pandas/pandas/io/parsers/readers.py:617, in _read(filepath_or_buffer, kwds) 614 nrows = kwds.get("nrows", None) 616 # Check for duplicates in names. --> 617 _validate_names(kwds.get("names", None)) 619 # Create the parser. 620 parser = T...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
6ccb2e5e-e885-5245-abc7-24fabc2fb6e1
changelog
pandas
pandas_whatsnew
0.19.0
18
### Method `read_csv` supports parsing `Categorical` directly[#](#method-read-csv-supports-parsing-categorical-directly "Link to this heading") The [`read_csv()`](../reference/api/pandas.read_csv.html#pandas.read_csv "pandas.read_csv") function now supports parsing a `Categorical` column when specified as a dtype ([GH...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
46f9e367-f50c-52d2-a126-46923364861b
changelog
pandas
pandas_whatsnew
0.19.0
19
In [30]: pd.read_csv(StringIO(data), dtype="category").dtypes Out[30]: col1 category col2 category col3 category Length: 3, dtype: object ``` Individual columns can be parsed as a `Categorical` using a dict specification ```None In [31]: pd.read_csv(StringIO(data), dtype={"col1": "category"}).dtypes Out[31]...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
f983fd12-b249-58ea-a7fb-b8b5624bba1b
changelog
pandas
pandas_whatsnew
0.19.0
20
Name: col3, Length: 3, dtype: category Categories (3, object): ['1', '2', '3'] In [35]: new_categories = pd.to_numeric(df["col3"].cat.categories) In [36]: df["col3"] = df["col3"].cat.rename_categories(new_categories) In [37]: df["col3"] Out[37]: 0 1 1 2 2 3 Name: col3, Length: 3, dtype: category Categories...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
11241453-b0fe-50ff-b522-b76754454f92
changelog
pandas
pandas_whatsnew
0.19.0
21
In [41]: union_categoricals([a, b]) Out[41]: ['b', 'c', 'a', 'b'] Categories (3, object): ['b', 'c', 'a'] ``` * `concat` and `append` now can concat `category` dtypes with different `categories` as `object` dtype ([GH 13524](https://github.com/pandas-dev/pandas/issues/13524)) ```None In [42]: s1 = pd.Se...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
e9357d48-ac6e-5c0c-914c-83050b7bb430
changelog
pandas
pandas_whatsnew
0.19.0
22
In [45]: from pandas.tseries.offsets import SemiMonthEnd, SemiMonthBegin ``` **SemiMonthEnd**: ```None In [46]: pd.Timestamp("2016-01-01") + SemiMonthEnd() Out[46]: Timestamp('2016-01-15 00:00:00') In [47]: pd.date_range("2015-01-01", freq="SM", periods=4) Out[47]: DatetimeIndex(['2015-01-15', '2015-01-31', '2015-02...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
7e128128-cfa5-5481-b5ae-ae5ca4414fe8
changelog
pandas
pandas_whatsnew
0.19.0
23
In [51]: pd.date_range("2015-01-01", freq="SM-14", periods=4) Out[51]: DatetimeIndex(['2015-01-14', '2015-01-31', '2015-02-14', '2015-02-28'], dtype='datetime64[ns]', freq='SM-14') ``` ### New Index methods[#](#new-index-methods "Link to this heading") The following methods and options are added to `Index`, to be mor...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
9a991a84-813c-5bc5-89a7-ec4a829ba6c9
changelog
pandas
pandas_whatsnew
0.19.0
24
`how='all'` only drops values where all levels are missing. ```None In [52]: midx = pd.MultiIndex.from_arrays([[1, 2, np.nan, 4], [1, 2, np.nan, np.nan]]) In [53]: midx Out[53]: MultiIndex([(1.0, 1.0), (2.0, 2.0), (nan, nan), (4.0, nan)], ) In [54]: midx.dropna() Out[5...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
5dc2c737-0ba0-5cd8-8611-3c98f2d4d1c0
changelog
pandas
pandas_whatsnew
0.19.0
25
`Index.astype()` now accepts an optional boolean argument `copy`, which allows optional copying if the requirements on dtype are satisfied ([GH 13209](https://github.com/pandas-dev/pandas/issues/13209)) ### Google BigQuery enhancements[#](#google-bigquery-enhancements "Link to this heading") * The [`read_gbq()`](../r...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
a03ff6f1-9441-5a02-bc9e-1564c46cc1fa
changelog
pandas
pandas_whatsnew
0.19.0
26
### Fine-grained NumPy errstate[#](#fine-grained-numpy-errstate "Link to this heading") Previous versions of pandas would permanently silence numpy’s ufunc error handling when `pandas` was imported. pandas did this in order to silence the warnings that would arise from using numpy ufuncs on missing data, which are usu...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
2e094d32-3c42-5246-b0de-0c2af0f01475
changelog
pandas
pandas_whatsnew
0.19.0
27
After upgrading pandas, you may see *new* `RuntimeWarnings` being issued from your code. These are likely legitimate, and the underlying cause likely existed in the code when using previous versions of pandas that simply silenced the warning. Use [numpy.errstate](https://numpy.org/doc/stable/reference/generated/numpy.e...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
d7bc4e4d-6ab3-5ea2-8459-92ddd5218c34
changelog
pandas
pandas_whatsnew
0.19.0
28
b bool c bool Length: 3, dtype: object ``` ### Downcast values to smallest possible dtype in `to_numeric`[#](#downcast-values-to-smallest-possible-dtype-in-to-numeric "Link to this heading") `pd.to_numeric()` now accepts a `downcast` parameter, which will downcast the data if possible to smallest specified nume...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
35b0a171-a727-5445-b81d-f492ebdc4c1d
changelog
pandas
pandas_whatsnew
0.19.0
29
will be published in future versions of pandas ([GH 13147](https://github.com/pandas-dev/pandas/issues/13147), [GH 13634](https://github.com/pandas-dev/pandas/issues/13634)) The following are now part of this API: ```None In [62]: import pprint In [63]: from pandas.api import types In [64]: funcs = [f for f in dir(...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
a7314804-ac57-54ae-b501-645a6d386ed5
changelog
pandas
pandas_whatsnew
0.19.0
30
'is_numeric_dtype', 'is_object_dtype', 'is_period_dtype', 'is_re', 'is_re_compilable', 'is_scalar', 'is_signed_integer_dtype', 'is_sparse', 'is_string_dtype', 'is_timedelta64_dtype', 'is_timedelta64_ns_dtype', 'is_unsigned_integer_dtype', 'pandas_dtype', 'union_categoricals'] ``` Note Calling these func...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
244f57c7-dbf3-587d-8ac0-fe2aae835f6d
changelog
pandas
pandas_whatsnew
0.19.0
31
* The `.resample()` function now accepts a `on=` or `level=` parameter for resampling on a datetimelike column or `MultiIndex` level ([GH 13500](https://github.com/pandas-dev/pandas/issues/13500)) ```None In [68]: df = pd.DataFrame( ....: {"date": pd.date_range("2015-01-01", freq="W", periods=5), "a": np....
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
e32292e8-6fde-57ca-9734-286c527bf810
changelog
pandas
pandas_whatsnew
0.19.0
32
a d 2015-01-31 6 2015-02-28 4 [2 rows x 1 columns] ``` * The `.get_credentials()` method of `GbqConnector` can now first try to fetch [the application default credentials](https://developers.google.com/identity/protocols/application-default-credentials). See the docs for more details ([GH 135...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
9c76ff6f-707d-5199-9d47-68f8fdbd7c2a
changelog
pandas
pandas_whatsnew
0.19.0
33
`decimal` ([GH 12933](https://github.com/pandas-dev/pandas/issues/12933)), `na_filter` ([GH 13321](https://github.com/pandas-dev/pandas/issues/13321)) and the `memory_map` option ([GH 13381](https://github.com/pandas-dev/pandas/issues/13381)). * Consistent with the Python API, `pd.read_csv()` will now interpret `+inf...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
ab83a378-3c78-5aed-b353-8c8eed5e2e78
changelog
pandas
pandas_whatsnew
0.19.0
34
* The `DataFrame` constructor will now respect key ordering if a list of `OrderedDict` objects are passed in ([GH 13304](https://github.com/pandas-dev/pandas/issues/13304)) * `pd.read_html()` has gained support for the `decimal` option ([GH 12907](https://github.com/pandas-dev/pandas/issues/12907)) * `Series` has gaine...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
f46d405e-4118-5822-8597-a832e0760ff1
changelog
pandas
pandas_whatsnew
0.19.0
35
* `.to_stata()` and `StataWriter` will automatically convert `datetime64[ns]` columns to Stata format `%tc`, rather than raising a `ValueError` ([GH 12259](https://github.com/pandas-dev/pandas/issues/12259)) * `read_stata()` and `StataReader` raise with a more explicit error message when reading Stata files with repeat...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
33ddab11-5b78-5336-a0f0-b88329586a5d
changelog
pandas
pandas_whatsnew
0.19.0
36
Out[71]: A B C row1 2 3 4 row2 7 5 8 [2 rows x 3 columns] In [72]: df.sort_values(by="row2", axis=1) Out[72]: B A C row1 3 2 4 row2 5 7 8 [2 rows x 3 columns] ``` * Added documentation to [I/O](../user_guide/io.html#io-dtypes) regarding the perils of reading in c...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
48264455-dfc5-5152-8fa4-3f93750755dd
changelog
pandas
pandas_whatsnew
0.19.0
37
* Raise `ImportError` in the sql functions when `sqlalchemy` is not installed and a connection string is used ([GH 11920](https://github.com/pandas-dev/pandas/issues/11920)). * Compatibility with matplotlib 2.0. Older versions of pandas should also work with matplotlib 2.0 ([GH 13333](https://github.com/pandas-dev/pand...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
f991284f-615a-5cfa-8bc0-99a0c3b5831d
changelog
pandas
pandas_whatsnew
0.19.0
38
* [`read_excel()`](../reference/api/pandas.read_excel.html#pandas.read_excel "pandas.read_excel") now supports the true\_values and false\_values keyword arguments ([GH 13347](https://github.com/pandas-dev/pandas/issues/13347)) * `groupby()` will now accept a scalar and a single-element list for specifying `level` on a...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
a1a649f8-217a-5e1c-bbb9-03353e744ef5
changelog
pandas
pandas_whatsnew
0.19.0
39
* `Series` and `Index` now support `divmod` which will return a tuple of series or indices. This behaves like a standard binary operator with regards to broadcasting rules ([GH 14208](https://github.com/pandas-dev/pandas/issues/14208)). ## API changes[#](#api-changes "Link to this heading") ### `Series.tolist()` ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
92255363-5325-5173-b1e9-8cc219a1299f
changelog
pandas
pandas_whatsnew
0.19.0
40
### `Series` operators for different indexes[#](#series-operators-for-different-indexes "Link to this heading") Following `Series` operators have been changed to make all operators consistent, including `DataFrame` ([GH 1134](https://github.com/pandas-dev/pandas/issues/1134), [GH 4581](https://github.com/pandas-dev/pa...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
44a501c3-accd-53f2-aa75-a7139937b186
changelog
pandas
pandas_whatsnew
0.19.0
41
#### Arithmetic operators[#](#arithmetic-operators "Link to this heading") Arithmetic operators align both `index` (no changes). ```None In [75]: s1 = pd.Series([1, 2, 3], index=list("ABC")) In [76]: s2 = pd.Series([2, 2, 2], index=list("ABD")) In [77]: s1 + s2 Out[77]: A 3.0 B 4.0 C NaN D NaN Length: ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
3b79aa8f-050b-5135-87b1-f72ebfa83d5a
changelog
pandas
pandas_whatsnew
0.19.0
42
``` Note To achieve the same result as previous versions (compare values based on locations ignoring `.index`), compare both `.values`. ```None In [81]: s1.values == s2.values Out[81]: array([False, True, False]) ``` If you want to compare `Series` aligning its `.index`, see flexible comparison methods section bel...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
3ae452cd-1cc8-5ae5-9b56-5263274c94e1
changelog
pandas
pandas_whatsnew
0.19.0
43
**New behavior** (`Series`): ```None In [83]: s1 = pd.Series([True, False, True], index=list("ABC")) In [84]: s2 = pd.Series([True, True, True], index=list("ABD")) In [85]: s1 & s2 Out[85]: A True B False C False D False Length: 4, dtype: bool ``` Note `Series` logical operators fill a `NaN` result w...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
306bb8f5-2d78-5204-a227-cdb30df54021
changelog
pandas
pandas_whatsnew
0.19.0
44
#### Flexible comparison methods[#](#flexible-comparison-methods "Link to this heading") `Series` flexible comparison methods like `eq`, `ne`, `le`, `lt`, `ge` and `gt` now align both `index`. Use these operators if you want to compare two `Series` which has the different `index`. ```None In [90]: s1 = pd.Series([1, ...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
e3d61204-8fb1-53c4-9844-43a028178801
changelog
pandas
pandas_whatsnew
0.19.0
45
```None In [2]: s["a"] = pd.Timestamp("2016-01-01") In [3]: s["b"] = 3.0 TypeError: invalid type promotion ``` **New behavior**: ```None In [95]: s["a"] = pd.Timestamp("2016-01-01") In [96]: s["b"] = 3.0 In [97]: s Out[97]: a 2016-01-01 00:00:00 b 3.0 Length: 2, dtype: object In [98]: s.dty...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md
5357dafc-724d-5ea4-86bd-9607b11c1476
changelog
pandas
pandas_whatsnew
0.19.0
46
Bug fixes related to `.to_datetime()`: * Bug in `pd.to_datetime()` when passing integers or floats, and no `unit` and `errors='coerce'` ([GH 13180](https://github.com/pandas-dev/pandas/issues/13180)). * Bug in `pd.to_datetime()` when passing invalid data types (e.g. bool); will now respect the `errors` keyword ([GH 13...
large_dataset/raw/changelog/pandas_whatsnew/whatsnew_0.19.0.md