rootloader 1.2.6__tar.gz → 1.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rootloader-1.2.6 → rootloader-1.2.7}/PKG-INFO +1 -1
- {rootloader-1.2.6 → rootloader-1.2.7}/rootloader/ttree.py +5 -1
- rootloader-1.2.7/rootloader/version.py +1 -0
- rootloader-1.2.6/rootloader/version.py +0 -1
- {rootloader-1.2.6 → rootloader-1.2.7}/.gitignore +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/LICENSE +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/README.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/README.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/rootloader/attrdict.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/rootloader/index.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/rootloader/tdirectory.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/rootloader/tfile.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/rootloader/th1.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/rootloader/th2.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/rootloader/tleaf.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/rootloader/ttree.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/docs/rootloader/version.md +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/gen_documentation.bash +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/pyproject.toml +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/rootloader/__init__.py +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/rootloader/attrdict.py +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/rootloader/tdirectory.py +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/rootloader/tfile.py +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/rootloader/th1.py +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/rootloader/th2.py +0 -0
- {rootloader-1.2.6 → rootloader-1.2.7}/rootloader/tleaf.py +0 -0
|
@@ -382,12 +382,16 @@ class ttree(object):
|
|
|
382
382
|
df = pd.DataFrame(df)
|
|
383
383
|
|
|
384
384
|
# set index
|
|
385
|
-
if self._index is not None
|
|
385
|
+
if self._index is not None:
|
|
386
386
|
df.set_index(self._index, inplace=True)
|
|
387
387
|
|
|
388
388
|
# convert to series?
|
|
389
389
|
if len(df.columns) == 1:
|
|
390
390
|
return df[df.columns[0]]
|
|
391
|
+
|
|
392
|
+
# index only dataframe
|
|
393
|
+
if len(df.columns) == 0:
|
|
394
|
+
df[self._index] = df.index
|
|
391
395
|
|
|
392
396
|
return df
|
|
393
397
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.2.7'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.2.6'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|