Pandas Crash in tslib with certain timezone objects

Code Sample, a copy-pastable example if possibleimport win32timezoneimport pywintypesimport pandasd = pywintypes.TimeTyp...

Pandas read_csv skiprows vs. read_excel

As I see pandas.read_csv() and pandas.read_excel() handle differently the skiprows argument. I have the same data in a C...

Pandas adding columns to a dataframe fills in with null values

Should adding dataframes yield a dataframe with all the columns of the added dataframes?First I simply create two datafr...

Pandas pandas.Timestamp with time only string doesn't work

Code Sample, a copy-pastable example if possibleIn [147]: pandas.Timestamp('4 pm')--------------------------------------...

Pandas to_dict doesn't convert np.int64 to python integers

Code Sample, a copy-pastable example if possible# Your code heredata = [{'id': 11, 'text': 'Osv1wbZoL'}, {'id': 0...

Pandas open h5 file error

Code Sample, a copy-pastable example if possible# Your code hereimport h5py as h5f = h5.File('test.h5', 'w')f.create_dat...

Pandas Subsetting dataframe w/ Multiindex does not preserve queried order

Problem descriptionI would like to subset the data frame with a indexer. When using MultiIndex, the results are not fol...

Pandas DOC: styler warnings in doc-build

https://travis-ci.org/pandas-dev/pandas/jobs/222779268/tmp/doc/source/generated/pandas.io.formats.style.Styler.rst:74: W...

Pandas Renaming MultiIndex values does not work at all (doesn't update values, or raise an exception)

Code Sample, a copy-pastable example if possibledf = pd.DataFrame({'First': ['A', 'A', 'A', 'B', 'B'], 'Last': ['C', 'D'...

Pandas groupby fails when elements are lists

import pandas as pddf = pd.DataFrame ({'a' : [[1,2,3]]})g = df.groupby ('a')g.groupsTypeError: unhashable type: 'list'**...

Pandas How can np.nan be the representation of None when np.nan evaluates to True

In reference to @jreback 's answer on this related issue, it seems a bit counter-intuitive for me that np.nan evaluates ...

Pandas Fast way to exclude columns

It would be great to be able to exclude/slice columns like you can with np arrays.df = pd.DataFrame(np.random.rand(4,4),...

Pandas Inconsistent handling of nans in min/max functions

Code SampleIn [49]: min(pd.Series([pd.np.nan, 1, 2, pd.np.nan]))Out[49]: nanIn [50]: min(pd.Series([1, 2, pd.np.nan]))Ou...

Pandas ENH: support pendulum objects

import pendulumimport pandaspandas.date_range(start=pendulum.now(), end=pendulum.tomorrow())[1] 56829 segmentation fa...

Pandas groupby.transform() fails when performed on column of numpy arrays

Code Sample, a copy-pastable example if possibledf = pd.DataFrame.from_dict({"A":[1, 1, 2, 2], ...

Pandas Typo in documentation of pandas.DatetimeIndex.freq

Just a small typo at http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DatetimeIndex.freq.html#pandas.Datetim...

Pandas read_excel skiprows

Code Sample, a copy-pastable example if possibleskip = [0] + [i for i in range(3, 81)]df = pd.read_excel('excel_file.xls...

Pandas Setting values in empty multi-dimensional dataframe with multi-dimensional data?

I am trying to find a clean, concise way of setting the values of a multi-dimensional, multi-indexed dataframe, using da...

Pandas Resetting Index on slice

Code Sample, a copy-pastable example if possible# Your code heredf = data_index[data_index['ntorsions'] == 2]Problem des...

Pandas Default iteration behavior of the DataFrame

Code Sample, a copy-pastable example if possiblefor x in my_data_frame: print rep(x)Problem descriptionThe current be...
上一页 下一页
.