Pandas Row slicing of a sparse dataframe is too slow

Code Sampledf = Dataframe(numpy.zeros(10000,10000))random_fill_df(df, num_elements=20)df = df.to_sparse(fill_value=0)tim...

Pandas NaN Error in creating a series with dict

import pandas as pdpd.Series(data={"a":[1,2,3,3,5]}, index=[1,2,3,4,5])Problem descriptionIf I use the code ab...

Pandas ValueError: Big-endian buffer not supported on little-endian compiler in DataFrame repr

Code Sample, a copy-pastable example if possibleimport pandas as pdfrom collections import OrderedDictdata = OrderedDict...

Pandas [Feature Request] read_pickle and to_pickle Optionally Read/Return Strings Similar to Pickle's dumps and loads

Unless I'm mistaken there's no official way of directly getting a string representation of a DataFrame. I was using cPi...

Pandas python3 import zookeeper module import

I recently import the zookeeper module in python 3,so when I finished my work, I made a mistake in testing the import of...

Pandas Error while trying to use column values in a dataframe.query() as dictionary keys

Code Sample, a copy-pastable example if possible#Does not work, raises: "TypeError: 'DataFrame' objects are mutable...

Pandas astype documentation lacks a section about the copy parameter

The astype method of both DataFrame and Series don't include an explanation about the copy parameter in 'parameters' ses...

Pandas Possible documentation problem in GroupBy section

Hi. I'm not understanding the following section in the pandas doc regarding "Flexible apply" on the following page: ht...

Pandas new html styling does not persist when converting from notebook to html file

Hi,I love the look of new default output of pandas dataframes in the new jupyter notebooks, but when I runjupyter nbconv...

Pandas round function on a dtype: object does not return the expected result without further information

Sometimes pandas round function does not return the expected results without informing me about the reason. Consider th...

Pandas inplace argument has no effect for rename_axis()

Code Sample, a copy-pastable example if possible >>> df = pd.DataFrame([[1,2],[3,4]]) >>> df ...

Pandas UInt64Index not implemented by pytables

Code Sample, a copy-pastable example if possibledf = pd.DataFrame(np.random.randint(0, high=2**16 -1, size=(20,5), dtype...

Pandas Time-based rolling apply inconsistent behavior on NaN rows

Code Sample, a copy-pastable example if possibleimport pandas as pdimport numpy as nps = pd.Series([1, 2, 3, np.nan, 5],...

Pandas .iloc[] with positional index error

Newest version of Pandas using .iloc method on a data frame threw me IndexError: single positional indexer is out-of-bou...

Pandas Regression : Pandas 0.20.1 vs 0.19.1

Code Sample, a copy-pastable example if possible#Using pandas 0.19.2import pandas as pd, picklearr= np.ones((5,5))col= [...

Pandas Internals: concat does not preserve block types / does not take ndim of blocks into account

xref https://github.com/pandas-dev/pandas/issues/17144I am trying to get concat (and affiliated functionality) working w...

Pandas Q: DataFrame loc and iloc seem to have inconsistent negative indexing behaviors.

With version: 0.20.3, DataFrame loc and iloc have inconsistent and buggy indexing behaviors.df = pd.DataFrame([dict(idx=...

Pandas 'column' not in index, but hell it is. Seems like a bug...

I have a dataframe called delivery and when I print(delivery.columns) I get the following:Index(['Complemento_endereço',...

Pandas Windows 10: File created with to_excel() gets fixed Date Accessed-value two hours in the future from first invocation

Code Sample, a copy-pastable example if possibleimport pandas as pdL1 = [1,2,3,4,5,6,7,8,9,10]df = pd.DataFrame({"L...

Pandas datetime64 dtype loses precision on creation of a Series, leading to OutOfBoundsDatetime

Code Sample# Your code hereProblem descriptionThe above code raises an exception when run:import numpyimport pandasarray...
上一页 下一页
.