Skip to content

Conversation

@mortada
Copy link
Contributor

@mortada mortada commented May 5, 2015

currently Panel.from_dict is just ignoring the dtype argument:

In [1]: import pandas as pd
In [2]: import numpy as np
In [3]: df = pd.DataFrame(np.array(range(6)).reshape(3, 2))
In [4]: pa = pd.Panel.from_dict({'a': df, 'b': df}, dtype=float)
In [5]: pa.dtypes
Out[5]:
a    int64
b    int64
dtype: object

this PR sets the dtype and fixes the docstrings in some places

@jreback jreback added this to the 0.17.0 milestone May 5, 2015
@jreback jreback added Reshaping Concat, Merge/Join, Stack/Unstack, Explode Dtype Conversions Unexpected or buggy dtype conversions API Design labels May 5, 2015
@jreback
Copy link
Contributor

jreback commented May 5, 2015

ok, guess this is fine for consistency.

@jreback
Copy link
Contributor

jreback commented May 9, 2015

put release for 0.17.0 (the file exists in master now)

@mortada mortada force-pushed the panel_dtype branch 3 times, most recently from 72ba294 to c115efc Compare May 16, 2015 01:16
@mortada
Copy link
Contributor Author

mortada commented May 17, 2015

@jreback release note for this is updated

jreback added a commit that referenced this pull request May 18, 2015
BUG: Panel.from_dict does not set dtype when specified
@jreback jreback merged commit f929bc4 into pandas-dev:master May 18, 2015
@jreback
Copy link
Contributor

jreback commented May 18, 2015

thanks

@mortada mortada deleted the panel_dtype branch May 18, 2015 19:06
@jorisvandenbossche jorisvandenbossche modified the milestones: 0.17.0, 0.16.2 Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Design Dtype Conversions Unexpected or buggy dtype conversions Reshaping Concat, Merge/Join, Stack/Unstack, Explode

3 participants