Nineya
Home
Blog
Pandas Series.add(fill_value=0) changes int dtype to float
2025-02-10 03:44:16
685
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)
2025-02-10 03:44:11
7012
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
2025-02-10 03:44:06
3654
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
2025-02-10 03:44:01
2586
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()
2025-02-10 03:43:56
411
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
2025-02-10 03:43:51
2998
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
2025-02-10 03:43:45
208
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
2025-02-10 03:43:41
1626
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
2025-02-10 03:43:35
3526
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()
2025-02-10 03:43:29
2389
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
2025-02-10 03:43:24
802
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
2025-02-10 03:43:19
6898
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
2025-02-10 03:43:14
511
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
2025-02-10 03:43:10
1938
Code Sample, a copy-pastable example if possible>>> index = pandas.to_timedelta([15e-7], unit="s")>...
Pandas Where operation with setting doesn't work any more
2025-02-10 03:43:05
2399
Code Sample, a copy-pastable example if possibledf2[df2 > 0] = -df2Problem descriptionIn the 10-minute tutorial this ...
Pandas DOC: Sphinx 1.7 compatability
2025-02-10 03:42:59
634
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
2025-02-10 03:42:54
2626
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
2025-02-10 03:42:48
2643
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'
2025-02-10 03:42:43
3942
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
2025-02-10 03:42:37
2255
total=pd.DataFrame({"all_eternal":[1,2,1,1,0,1],"country_name":["United States","Germ...
上一页
下一页
1
…
32
33
34
35
36
…
2246
.