Skip to content

Commit

Permalink
update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Zybulon committed Nov 26, 2023
1 parent 2b26d21 commit 41e8dc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ df0 = pd.DataFrame([[0.09, 0.91, 0.23, 0.01, 0.02, 0.06],
[0.08, 0.64, 0.31, 0.98, 0.63, 0.05],
[0.74, 0.93, 0.76, 0.54, 0.03, 0.07],
[0.79, 0.98, 0.51, 0.73, 0.13, 0.31]],
columns=["f", "o", "o", "b", "a", "r"])
columns=["f", "o", "o", "ß", "a", "r"])

# you can write a DataFrame into a HDF5 file with create_dataset
# You can write a DataFrame into a HDF5 file with create_dataset
# Inside the file, the columns names are saved as attribute of the dataset.
with h5pandas.File("foo.h5", "w") as file:
df = file.create_dataset('bar', data=df0)
Expand All @@ -63,7 +63,7 @@ with h5pandas.File("foo.h5", "r") as file:
delta = df - df0

# you can still change columns names after DataFrame creation (it won't change them on the disk).
df.columns = ["a", "b", "c", "d", "e", "g"]
df.columns = ["a", "b", "c", "d", "é", "g"]

# With the "h5" accessor you can access to ...
# The file
Expand All @@ -78,5 +78,4 @@ with h5pandas.File("foo.h5", "r") as file:
with h5py.File("foo.h5", "r") as file:
dataset = file['/bar']
df = h5pandas.dataset_to_dataframe(dataset, ["a", "b", "c", "d", "e", "g"])

```
2 changes: 1 addition & 1 deletion h5pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from .dataframe import dataset_to_dataframe
from h5py import *
from .group import Group, File
__version__ = "0.3"
__version__ = "0.4"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# This call to setup() does all the work
setup(
name="h5pandas",
version="0.3",
version="0.4",
description="Load hdf5 into Pandas DataFrame instantaneously",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 41e8dc0

Please sign in to comment.