@@ -47,9 +47,9 @@ df0 = pd.DataFrame([[0.09, 0.91, 0.23, 0.01, 0.02, 0.06],
47
47
[0.08 , 0.64 , 0.31 , 0.98 , 0.63 , 0.05 ],
48
48
[0.74 , 0.93 , 0.76 , 0.54 , 0.03 , 0.07 ],
49
49
[0.79 , 0.98 , 0.51 , 0.73 , 0.13 , 0.31 ]],
50
- columns = [" f" , " o" , " o" , " b " , " a" , " r" ])
50
+ columns = [" f" , " o" , " o" , " ß " , " a" , " r" ])
51
51
52
- # you can write a DataFrame into a HDF5 file with create_dataset
52
+ # You can write a DataFrame into a HDF5 file with create_dataset
53
53
# Inside the file, the columns names are saved as attribute of the dataset.
54
54
with h5pandas.File(" foo.h5" , " w" ) as file :
55
55
df = file .create_dataset(' bar' , data = df0)
@@ -63,7 +63,7 @@ with h5pandas.File("foo.h5", "r") as file:
63
63
delta = df - df0
64
64
65
65
# you can still change columns names after DataFrame creation (it won't change them on the disk).
66
- df.columns = [" a" , " b" , " c" , " d" , " e " , " g" ]
66
+ df.columns = [" a" , " b" , " c" , " d" , " é " , " g" ]
67
67
68
68
# With the "h5" accessor you can access to ...
69
69
# The file
@@ -78,5 +78,4 @@ with h5pandas.File("foo.h5", "r") as file:
78
78
with h5py.File(" foo.h5" , " r" ) as file :
79
79
dataset = file [' /bar' ]
80
80
df = h5pandas.dataset_to_dataframe(dataset, [" a" , " b" , " c" , " d" , " e" , " g" ])
81
-
82
81
```
0 commit comments