Pandas Series.add(fill_value=0) changes int dtype to float

Code Sampleimport pandas as pdpd.Series([1,2,3]).add(pd.Series([100]), fill_value=0)Problem descriptionThe resulting dty...

Pandas Failure to identify NaNs as equal in pandas.DataFrame.equals() method (as it should)

Code to replicate problemPlease see this link to download the referenced files.df = pd.read_pickle('bug_df.pickle')df2 =...

Pandas Suggestion: Temporary Variable in Pandas Data Frame

Temporary VariablesWhile dealing with data in real world, its noted that level of complexity is higher and it would be b...

Pandas Group by and bin data with respect to time

df.set_index('TIME').groupby(pd.TimeGrouper('180M'))or grouped = df.groupby(lambda x: x.hour)i am using this code to div...

Pandas Feature request: pandas.Series.gradient()

Problem descriptionIt is common to difference a time series multiple times to stationarize it.I found surprinsing pandas...

Pandas df.sort_index() leaves us with df.index.is_lexsorted()==False

Code Sample, a copy-pastable example if possibled=pd.DataFrame( [ [1,2,3], [1,2,4], [2,3,5], ...

Pandas TST: add doc-strings for fixtures

pytest --fixtures prints these out. so let's add doc-strings, then we can figure out if we have duplicates / consolidate...

Pandas unexpected timestamps behavior

If I run pd.to_datetime('now') == pd.to_datetime('now', utc=True)or pd.Timestamp('now', tz='utc') == pd.Timestamp('now')...

Pandas df.eval fails for Unary operation involving float32 column

Code Sample, a copy-pastable example if possibleimport pandas as pddf = pd.DataFrame({ 'Foo64': [1.2, 2.4, 7.24],})df...

Pandas can't subtract utc datetimes from datetime.utcnow()

Code Sample, a copy-pastable example if possible# Your code heredf = pd.DataFrame()df["time"] = pd.date_range(...

Pandas GroupBy.var() is computing sum of squares instead of variance / Returns NaN when there is only 1 instance

Code Sample, a copy-pastable example if possible# returns 10.125df = pd.DataFrame({'id': [1, 1], 'val': [0.5, 5.0]})df.g...

Pandas pd.read_csv generating different pd.DataFrames with identical dataset

Code Sample, a copy-pastable example if possibleFor loading the csvfile:loadedFile = pd.read_csv(fileLocation)For gettin...

Pandas Pandas install includes hefty 29MB tests/ directory

This is particularly relevant to people trying to minimize virtualenvs for AWS Lambda, where a max file size is imposed....

Pandas to_timedelta does not work properly with nanoseconds

Code Sample, a copy-pastable example if possible>>> index = pandas.to_timedelta([15e-7], unit="s")&gt...

Pandas Where operation with setting doesn't work any more

Code Sample, a copy-pastable example if possibledf2[df2 > 0] = -df2Problem descriptionIn the 10-minute tutorial this ...

Pandas DOC: Sphinx 1.7 compatability

I thought I posted this when the beta was out, but apparently not. We have a bit of work to do.[ ] Remove vendored IPyth...

Pandas pandas.read_csv tries to convert "NaN" even when specifying dtype argument

Code Sample, a copy-pastable example if possiblefrom pandas.compat import StringIOimport pandas as pdt1 = ""&q...

Pandas groupby by levels behaves differently than in pandas 0.20

Code Sample, a copy-pastable example if possibleimport pandas as pdfrom numpy import nand = {(0, 'NNPDF31_nlo_as_0130_u...

Pandas Performance issue when using pivot_table with multiple columns out of which at least one is of type 'category'

Code Sampleimport pandas as pdimport numpy as npimport timen_rows = 1000n_categories = 250df = pd.DataFrame({'cat1': np....

Pandas Possibly unexpected behaviour when using apply and custom funcs

total=pd.DataFrame({"all_eternal":[1,2,1,1,0,1],"country_name":["United States","Germ...
上一页 下一页
.