Pandas BUG:MultiIndex.from_arrays gives wrong lable on level=NaN

When I tried to generate multiindex with np.nan or None from array, I got:import pandas as pdimport numpy as npfrom pand...

Pandas drop_duplicates() returns with error if column datatype is list

Can it be possible to improve drop_duplicates() method to handle list column datatpyes? Now if I have a column with list...

Pandas UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb with read_excel function

import pandas as pddata = pd.read_excel(open("2016-07-12_Zuwendungsbericht_2015_OpenData.xlsx"), sheetname=&qu...

Pandas groupby casting to int64

Code Sample, a copy-pastable example if possiblefrom StringIO import StringIOimport pandas as pdimport numpy as npdata =...

Pandas Using to_json() while reading from a specific csv file causes Django to not store the variable in the session

Inside of a Django view: my_names = ['Date','Open','High','Low','Close','Volume','B0','B1','B2','B3','B4','B5','B6','...

Pandas read_html incorrectly parses a table from Wikipedia

Code Sample, a copy-pastable example if possibleimport pandas as pdimport html5libimport requestsfrom lxml import htmlfr...

Pandas BUG/PY3? astype("string") fails for python 3

From the categorical example docs, with python 2.7:In [1]: s = pd.Series(["a","b","c",&quo...

Pandas Importing pandas automatically opens multiple threads

When I run the following script on my macbookpro, I see that 8 threads are spawn. Similar behavior (opening multiple thr...

Pandas to_datetime() fails with Python 3.6

Code Samplepd.to_datetime('22/12/2016')Problem descriptionThis fails on Python 3.6.0, but works with previous versions l...

Pandas NAs in mixed-type columns

File: sample.txtimport pandas as pd# This does not work as expectedw = pd.read_csv("sample.txt", dtype={"...

Pandas ENH: New short indexer for operating on values

First of all, if I missed a point, please feel free to comment.Using arithmetic operations on pd.DataFrames is sometimes...

Pandas ENH: ExcelWriter class should implement context manager interface (__enter__ and __exit__)

Is there any downside to adding this? This would allow one to avoid having to save/close an Excel file deliberately. Com...

Pandas Categorical Series.describe() returns wrong dtype

Series.describe() seems to return the wrong dtype for series with categorical data. See example below:import pandas as p...

Pandas Series.sort_index does not() implement optional argument kind

Code Sample, a copy-pastable example if possible>>> import pandas as pd>>> a = pd.Series(range(10))&gt...

Pandas Get progress information with DataFrame.apply()

I'm looking into the code to see if this change would be a major or minor undertaking. I don't know what your opinion is...

Pandas Quantile result errors.

Code Sample, a copy-pastable example if possible# Your code here>>> loc1series4 = pd.Series([6,8,10,12,14,9,11,...

Pandas Unnecessary pytz.exceptions.AmbiguousTimeError

pd.Timestamp() raises what seems to me an unnecessary error.import pandas as pd# this throws error:>>> pd.Times...

Pandas Object columns strangely exportet to csv

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as npdf = pd.DataFrame({'year':[1990.0, ...

Pandas Original numpy array getting altered when changes made to dataframe

Code Samplea = np.array([1,2,3, np.nan])b = pd.DataFrame(a)b.fillna(4, inplace=True)print bprint aOutput 00 1.01 2...

Pandas read_csv parse error on tab-delimited

I'm getting a CParserError on a large (25M rows) tab-delimited file. I've narrowed the problem to the lines in the examp...
上一页 下一页
.