Pandas .drop_duplicates() increases memory usage of Dataframe

pd.__version__u'0.20.1'from random import random,choiceimport pandas as pdstates = ['Alabama', 'Alaska', 'Arizona', 'Ark...

Pandas to_numeric crashes python on empty dataframe column

Crash sampleIn[2]: df = pd.DataFrame(columns=['maybe_empty_column']) ...: pd.to_numeric(df['maybe_empty_column'], error...

Pandas read_csv(filename_with_asian_locale) failed in python 3.6 for windows

Code:Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32>&gt...

Pandas import fails after clean anaconda install

Code Sample, a copy-pastable example if possible>>> import pandasTraceback (most recent call last): File &quot...

Pandas Inconsistent return types for df.loc[id]['column']

Code Sampleimport pandas as pddf = pd.DataFrame([1,2,3], columns=['column'], index=[1,1,2])for idx in df.index.unique():...

Pandas strings not properly detected despite correct dtype in read_csv

Hello there!I am working with text data, and I read my data in usingfull_list =[]for myfile in all_files: print(&quot...

Pandas Option for making pandas dataframe completely immutable

It seems currently there is no option similar to numpy's setflags to make pandas dataframe completely immutable (writeab...

Pandas ImportError: No module named index when load a pickle file generated by old version Pandas

Code Sample, a copy-pastable example if possibleimport picklepickle.load(open('./20170130T000000_20170202T000000_done.pk...

Pandas Efficient conversion from dataframes to numpy arrays retaining column dtypes and names

Problem descriptionI was looking into how to convert dataframes to numpy arrays so that both column dtypes and names wou...

Pandas IntervalIndex is_monotonic_decreasing is incorrect

Code Sample, a copy-pastable example if possibleIn [2]: idx = pd.IntervalIndex.from_tuples([(2, 3), (1, 2), (0, 1)], clo...

Pandas Updating pandas to v0.20.1 breaks Spyder

After updating pandas to the latest version, 0.20.1, spyder (v3.1.4, Python 2.7.9 64bits, Qt 4.8.6, PyQt4 (API v2) 4.11....

Pandas groupby optional setting (get_group or general?): getting a column value list per group instead of index

helloWhen using the mighty groupby function, I found myself quite disappointed by something:indeed, it is very useful re...

Pandas Cannot specify internal dtype for categorical dtype when reading a CSV file

Code Sample, a copy-pastable example if possible>>> import pandas as pd>>> import numpy as np>>&...

Pandas Linear Regression using Pandas

Code Sample from Stamford[http://stamfordresearch.com/linear-regression-using-pandas-python/](url) (original code)[](url...

Pandas Can't read csv using python pandas

Code Sample, a copy-pastable example if possible# Your code hereimport pandasvar=pandas.read_csv("C:\Script\testexp...

Pandas Values of a data frame doesn't return the expected numpy array.

Code Sample, a copy-pastable example if possiblenp.random.seed(42)arr = np.random.choice(['foo', 'bar', 42], size=(3,3))...

Pandas Implement usecols functionality for read_excel

Code Sample, a copy-pastable example if possibleimport pandas as pdempty_frame=pd.read_excel('pandas/tests/io/data/test1...

Pandas Indexing into a dataframe re-casts / "forgets" dtypes

Code Sample, a copy-pastable example if possibleIn [62]: df = pd.DataFrame([(float(x) for x in range(0, 10)), (float(x) ...

Pandas Cannot import pandas after update of conda (PyQt4.QtGui import error)

Recently updated conda, using conda update --all. I have conda forge, so I should be using the latest recipes. On attemp...

Pandas SQLAlchemy Oracle: Not able to connect using create_engine getting ValueError: invalid literal for int() with base 10: '0b2'

# Your code herefrom sqlalchemy import create_engineimport cx_Oracleengine_oracle = create_engine('oracle://admin:whatev...
上一页 下一页
.