玖涯软件开发
Home
Blog
Pandas sort_values bug while by both list and other values
2025-02-10 03:05:18
2524
first, I know the strings in column b can be used directly for sorting. My function aFucntion seems to be so stupid, bec...
Pandas how to load 0.19 MultiIndex into 0.20?
2025-02-10 03:05:13
509
I created some index in the 0.19 pandas I would reuse in the 0.20 without to recreate them from raw data in the pandas 0...
Pandas Imprecise intervals/labels by pd.cut
2025-02-10 03:05:08
5523
Code Sampleimport pandas as pdx = [0, 1, 2, 3, 4]res = pd.cut(x, (0, 2, 4), include_lowest=True)print(res, '\n')for val ...
Pandas pd.DatetimeIndex.astype(datetime.datetime) no longer working
2025-02-10 03:05:01
4747
Code Sample, a copy-pastable example if possibleimport numpy as npimport pandas as pdimport pytzimport datetime# Timezon...
Pandas .resample documentation too vague
2025-02-10 03:04:56
995
Problem description: ".resample" documentation too vagueurl: http://pandas.pydata.org/pandas-docs/stable/generated/panda...
Pandas pandas.NaT returned when converting series to standard python datetime, but does not support datetime functionality
2025-02-10 03:04:50
2490
Code Sample, a copy-pastable example if possibleimport pandas as pdpandas_datetimes = pd.Series(pd.date_range('20130101'...
Pandas Different results with tzlib and dateutil_tz with "ambiguous" argument to tz_localize
2025-02-10 03:04:45
1999
Code Sample, a copy-pastable example if possibleIn [2]: import pytzIn [3]: pytz_tz = pytz.timezone('US/Eastern') ...: ...
Pandas dataframe.query() select columns
2025-02-10 03:04:39
2417
In function query@pandas/core/frame.py I found dataframe return eval result, and use self.loc to return new dataframe, a...
Pandas Empty dataframe with groupby when nan column
2025-02-10 03:04:34
1615
Hi,I encountered a 'problem' when my program tried to groupby a dataframe with an empty (ie full of nan) column. Here a ...
Pandas keepdims fails when taking mean
2025-02-10 03:04:26
3389
Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as npprint(np.mean(np.zeros((30, 30)), a...
Pandas rolling.quantile does not behave like quantile and np.percentile.
2025-02-10 03:04:21
2353
Code Sample>>> import numpy as np>>> import pandas as pd>>> arr = np.arange(100)>>> ...
Pandas Build empty SparseDataFrame by columns very loog compared to by index.
2025-02-10 03:04:16
1825
Code Sample, a copy-pastable example if possibleI want to create a sparse matrix with a 4 level multiindex and about 340...
Pandas Using loc with assignment and multiple columns fails
2025-02-10 03:04:11
1559
Code Sample, a copy-pastable example if possible# Your code heredf = pd.DataFrame({'a': range(4), 'b': range(4,8)})df.lo...
Pandas Assignment using .loc takes longer and longer
2025-02-10 03:04:06
3072
Code Sample, a copy-pastable example if possibleimport pandas, numpyimport timedf1 = pandas.DataFrame(numpy.random.rando...
Pandas BUG: multi-index joining returns wrong multiindex
2025-02-10 03:04:01
2944
Code Sample, a copy-pastable example if possiblemodified from TestMergeMulti.test_join_multi_levelsimport pandas as pdho...
Pandas Pandas : to_csv() got an unexpected keyword argument
2025-02-10 03:03:55
2990
df.to_csv('transactions.x', header=False, doublequote=False)While I am trying to use some of the parameters in dataframe...
Pandas MultiIndex levels() and get_level_values() give different results
2025-02-10 03:03:49
2771
Code Sample, a copy-pastable example if possibleimport pandas as pdraw_data = {'regiment': ['Nighthawks', 'Nighthawks', ...
Pandas pd.to_datetime throws OutOfBoundsDatetime parsing strings without the year
2025-02-10 03:03:43
1950
Code Sample, a copy-pastable example if possiblepd.to_datetime(pd.Series('5pm april'))Problem descriptionStrings that ca...
Pandas DataFrame.ix drops level of MultiIndex
2025-02-10 03:03:38
1539
Code Sample, a copy-pastable example if possibleimport pandas as pddf = pd.DataFrame(columns=["A", "B&quo...
Pandas read_sas crashes when reading time data
2025-02-10 03:03:33
18963
read_sas works just fine with my other tables. I suspect this may have something to do with converting timeseries or tim...
上一页
下一页
1
…
53
54
55
56
57
…
2246
.