Nineya
Home
Blog
Pandas BUG:MultiIndex.from_arrays gives wrong lable on level=NaN
2025-02-10 02:48:14
2446
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
2025-02-10 02:48:09
1104
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
2025-02-10 02:48:04
5603
import pandas as pddata = pd.read_excel(open("2016-07-12_Zuwendungsbericht_2015_OpenData.xlsx"), sheetname=&qu...
Pandas groupby casting to int64
2025-02-10 02:48:00
1988
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
2025-02-10 02:47:55
2045
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
2025-02-10 02:47:49
2339
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
2025-02-10 02:47:43
3726
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
2025-02-10 02:47:37
1995
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
2025-02-10 02:47:32
1523
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
2025-02-10 02:47:27
5563
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
2025-02-10 02:47:22
3411
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__)
2025-02-10 02:47:17
274
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
2025-02-10 02:47:12
1888
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
2025-02-10 02:47:06
1351
Code Sample, a copy-pastable example if possible>>> import pandas as pd>>> a = pd.Series(range(10))>...
Pandas Get progress information with DataFrame.apply()
2025-02-10 02:47:02
1126
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.
2025-02-10 02:46:56
1614
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
2025-02-10 02:46:51
2707
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
2025-02-10 02:46:47
1879
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
2025-02-10 02:46:42
2390
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
2025-02-10 02:46:36
3720
I'm getting a CParserError on a large (25M rows) tab-delimited file. I've narrowed the problem to the lines in the examp...
上一页
下一页
1
…
61
62
63
64
65
…
2246
.