Current collected state Current
Observed since 21 Oct, 10:57 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
aiida-dataframe
AiiDA data plugin for pandas DataFrame objects
AiiDA data plugin for pandas DataFrame objects
Store pandas.DataFrame objects in the Database:
import pandas as pd
PandasFrameData = DataFactory('dataframe.frame')
df = pd.DataFrame(
{
"A": 1.0,
"B": pd.Timestamp("20130102"),
"C": pd.Series(1, index=list(range(4)), dtype="float32"),
"D": np.array([3] * 4, dtype="int32"),
"E": pd.Categorical(["test", "train", "test", "train"]),
"F": "foo",
}
)
df_node = PandasFrameData(df)
df_node.store()
Retrieving the pandas.DataFrame from the Database :
from aiida.orm import QueryBuilder
df_node = QueryBuilder().append(PandasFrameData).first()[0]
df = df_node.df #The df property reconstructs the pandas DataFrame
print(df.head())
pip install aiida-dataframe
verdi quicksetup # better to set up a new profile
verdi plugin list aiida.data # should now show your data plugins
The plugin also includes verdi commands to inspect its data types:
verdi data dataframe list
verdi data dataframe export <PK>
verdi data dataframe show <PK>
git clone https://github.com/janssenhenning/aiida-dataframe .
cd aiida-dataframe
pip install --upgrade pip
pip install -e .[pre-commit,testing] # install extra dependencies
pre-commit install # install pre-commit hooks
pytest -v # discover and run all tests
See the developer guide for more information.
MIT
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
aiida-coreEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | aiida-core<3,>=1.0 | runtime |
pandasEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | pandas | runtime |
tablesEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | tables | runtime |
tabulateEnvironment{
"extras": "",
"marker": null,
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | tabulate | runtime |
sphinxEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | sphinx; extra == "docs" | runtime |
sphinxcontrib-contentuiEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | sphinxcontrib-contentui; extra == "docs" | runtime |
sphinxcontrib-details-directiveEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | sphinxcontrib-details-directive; extra == "docs" | runtime |
sphinx-autodoc-typehintsEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | sphinx-autodoc-typehints; extra == "docs" | runtime |
furoEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | furo; extra == "docs" | runtime |
markupsafeEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | markupsafe<2.1; extra == "docs" | runtime |
pre-commitEnvironment{
"extras": "",
"marker": "extra == \"pre-commit\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | pre-commit>=2.2; extra == "pre-commit" | runtime |
pylintEnvironment{
"extras": "",
"marker": "extra == \"pre-commit\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | pylint>=2.5.0; extra == "pre-commit" | runtime |
pgtestEnvironment{
"extras": "",
"marker": "extra == \"testing\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | pgtest~=1.3.1; extra == "testing" | runtime |
wheelEnvironment{
"extras": "",
"marker": "extra == \"testing\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | wheel~=0.31; extra == "testing" | runtime |
coverageEnvironment{
"extras": "toml",
"marker": "extra == \"testing\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | coverage[toml]; extra == "testing" | runtime |
pytestEnvironment{
"extras": "",
"marker": "extra == \"testing\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | pytest~=6.0; extra == "testing" | runtime |
pytest-covEnvironment{
"extras": "",
"marker": "extra == \"testing\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | pytest-cov; extra == "testing" | runtime |
pytest-regressionsEnvironment{
"extras": "",
"marker": "extra == \"testing\"",
"requires_python": ">=3.7",
"evaluation": "NOT_EVALUATED"
} | pytest-regressions; extra == "testing" | runtime |
bdist_wheel · 7.6 KB · Python py3
sdist · 91.48 KB · Python source
Shared repository data · GitHub
Observed since 21 Oct, 10:57 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:8a381bb111bd9dad44976c56c0da1bbcd62343dbd351f474ede3f697a661fa28