Nineya
Home
Blog
Pandas to_numeric silently crashes on series with 0 rows
2025-02-10 03:27:19
1015
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)
2025-02-10 03:27:14
2452
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
2025-02-10 03:27:09
2951
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
2025-02-10 03:27:04
2616
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
2025-02-10 03:26:58
8627
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
2025-02-10 03:26:53
4315
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
2025-02-10 03:26:47
5496
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)
2025-02-10 03:26:41
8495
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
2025-02-10 03:26:37
2876
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
2025-02-10 03:26:32
2541
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
2025-02-10 03:26:26
3265
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
2025-02-10 03:26:21
3238
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
2025-02-10 03:26:16
514
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
2025-02-10 03:26:11
2690
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
2025-02-10 03:26:05
724
/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]')
2025-02-10 03:26:01
2391
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
2025-02-10 03:25:56
4800
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
2025-02-10 03:25:50
2908
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
2025-02-10 03:25:45
1929
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.
2025-02-10 03:25:37
1976
Is it possible to use the driver argument for HDFStore? Pandas 0.21rc1.THank you.Comment From: TomAugspurgerCould you gi...
上一页
下一页
1
…
41
42
43
44
45
…
2246
.