Pandas to_numeric silently crashes on series with 0 rows

import pandas as pddf = pd.DataFrame(columns=['A', 'B'])df['C'] = pd.to_numeric(df['A'])I am not sure what the correct b...

Pandas Shorter syntax for selecting data and expression evaluation (proposal)

Summary:When we select data in pandas dataframe, which has long name, the code becomes bulky. For example:subset = reall...

Pandas OutOfBoundsDatetime converting a np datetime64[D] array to series

Code Sample, a copy-pastable example if possibleIn [37]: dOut[37]: array(['2017-01-01', 'NaT', '-5877611-06-21'], dtype=...

Pandas Related to clustering of protein using SOMclust

clust = SOMclust.clusters(umat, bmus, som.smap)Problem description100.00/100: flooding: 2499/2499, 127828.70, (120, 130)...

Pandas On installing a develop version: self.ld_version is None

Code Sample, a copy-pastable example if possibleI followed the rules described at the docs. The only thing which differs...

Pandas Can't Select by Label when the amount of PeriodIndex is more than 1,000,000

Code Sample, a copy-pastable example if possible>>> pr = pd.period_range(start='2017-01-01 00:00:00', periods=9...

Pandas Cannot pd.read_pickle objects in python2.7 which were pickled (obj.to_pickle) in python3

Code Sample, a copy-pastable example if possiblesetup.pyfrom sys import version_infoimport pandas as pddf = pd.DataFrame...

Pandas Specific Timestamps breaks time series indexing (.loc returns wrong results)

When try to access labels (.loc) by using a specific list of Timestamp objects or a DatetimeIndex object (See attached c...

Pandas Standardize columns of a dataframe

Is there a function which standardizes data in the columns of a dataframe? If not, can we introduce it? Through standar...

Pandas apply with .loc[:, col] method failed when the DataFrame only has one row and the column's type is datetime64

Code Sample, a copy-pastable example if possibleimport pandas as pdimport datetime as dt# only one rows = pd.DataFrame(c...

Pandas KeyError using custom aggregation function

import pandas as pddf = pd.DataFrame.from_dict([ {'A': 1, 'B': 'cat', 'values': 1}, {'A': 1, 'B': 'cat', 'values':...

Pandas MultiIndex with DatetimeIndex indexing loses nanosecond precision

MultiIndex loses nanosecond precisionI have a dataframe where one column is dtype: datetime64[ns]. This column has nanos...

Pandas REF/INT: refactor concatenation of values in Block.concat_same_type

See comment https://github.com/pandas-dev/pandas/pull/17954#discussion_r147298282 and https://github.com/pandas-dev/pand...

Pandas ValueError: cannot set a Timestamp with a non-timestamp

Code Sample, a copy-pastable example if possiblefrom io import StringIOdf = pd.read_csv(StringIO('''Date,A\n8/23/2017,a\...

Pandas Specify the column name in the mixed data type warning message

/usr/local/lib/python3.5/dist-packages/IPython/core/interactiveshell.py:2728: DtypeWarning: Columns (17) have mixed type...

Pandas Performance difference between to_datetime & astype('datetime64[ns]')

There is huge performance difference between, to_datetime and using astype for a epoch time series:Pandas to_datetime pe...

Pandas BUG: select_dtypes return unexpected results when assigning a column by subtraction or adding for large dataframe

Problem description and code exampleIt is similar with issue I mentioned. But for this case, it return nothing for a ne...

Pandas Apply on DataFrame with datetime

Code Sample, a copy-pastable example if possiblex = datetime.datetime.now()df = pd.DataFrame([[x, 1], [x, 2]], columns=[...

Pandas Unsorted Float64Index gives clipped plots

Code Sample, a copy-pastable example if possibleimport pandas as pddf = pd.DataFrame({'y': [3.5, 4.5, 6.5]}, index=[2.5,...

Pandas h5py driver='core' support for Pandas HDFStore.

Is it possible to use the driver argument for HDFStore? Pandas 0.21rc1.THank you.Comment From: TomAugspurgerCould you gi...
上一页 下一页
.