Pandas ENH: Series should provide _repr_html_

DataFrame provides repr_html so it looks great when it's displayed in a Jupyter notebook. Why not Series?Comment From: ...

Pandas Strange performance of Series.replace vs Dataframe.replace

Code Sample, a copy-pastable example if possibledi = {1: "A", 2: "B", 3: "C", 4: "D&q...

Pandas shift(-1) doesn't work in df.eval()

Code Sample, a copy-pastable example if possible>>> df = pd.DataFrame({'x':[1,2,3,4,5]})>>> df['x'].sh...

Pandas Unexpected results in Numpy datetime64 comparison within DataFrame

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as npfrom datetime import datetime,timed...

Pandas Pandas multiplying columns each other faster.

Hello I was using this df = df_base.copy() ...: for pair in combinations(df.columns, 3): ...new_col = ''.join(pair) ...:...

Pandas Make parameter keep=False keep duplicates for nlargest/nsmallest

Code Sample, a copy-pastable example if possible>>> s = pd.Series([10,9,8,7,7,7,6])>>> s.nlargest(4)0 ...

Pandas Segfault when putting a pendulum datetime into a DataFrame

Code Sample, a copy-pastable example if possibleimport pendulumtest = pandas.DataFrame.from_dict([{ 'example': pendul...

Pandas BUG: apply std to groupby with as_index=False

Code Sample, a copy-pastable example if possibleimport pandas as pdimport randomstr_values = ['a', 'b']data = [[random.c...

Pandas Boxplot values are sticking to major ticks. How can I get real values?

I try do boxplot my values. Pandas is able to correctly describe the DataFrame but as soon as execute a boxplot it stick...

Pandas Pandas panel deprecation will remove I/O functionality to HDF5/excel

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as npdata = np.random.rand(3,3,3)major_a...

Pandas to_timedelta('1', unit='h') does not work.

Code Sample, a copy-pastable example if possible# Your code hereIn [8]: pd.to_timedelta('1', unit='h')Out[8]: Timedelta(...

Pandas promotion ints and empty object on concat

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as npdf1 = pd.DataFrame(columns=['Start'...

Pandas Deadlock with nested list indexes

Code Sample, a copy-pastable example if possible#deadlock.pyimport pandas as pdimport numpy as npdf = pd.DataFrame(np.ra...

Pandas Applying set to NaN returns list of NaNs, not a set

Code Sample, a copy-pastable example if possibledftest = pd.DataFrame({"a":[np.nan]*5, "b":[1,1,2,3,...

Pandas isnull always returns False if input is np.ndarray with string inside

Code Sample, a copy-pastable example if possiblepd.isnull(np.array([np.nan, 'asdf', np.nan]))Problem descriptionDocument...

Pandas Piped Function Changes DataFrame before being assigned

Code Sample, a copy-pastable example if possibledef rename_levels(df, names, level=None): df.index = df.index.set_nam...

Pandas incorrect result for 'fast path' .nunique on groupby

Code Sampleimport pandas as pdfreq = '1D'# this failsN_days = 360# this works# N_days = 30N_choices = 30N_rows = 1000see...

Pandas Documentation error in Visualization

Code Sample, a copy-pastable example if possible# Your code hereIn [85]: from pandas.plotting import andrews_curvesIn [8...

Pandas inconsistent type returned on single (string) column subsetting

Code Sample, a copy-pastable example if possibleAs expected:import pandas as pdall_cols = list("abcdefg")infor...

Pandas Numpy Conflict with Pandas (Compile Error)

Code Samplenonna = values_to_mask[-na_mask]Problem descriptionIn the core/common.py, there exists on line 359 the above ...
上一页 下一页
.