byzh-core 0.0.9.0__tar.gz → 0.0.9.2__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.
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/PKG-INFO +1 -1
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Brecorder/record1d.py +2 -1
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Brecorder/record2d.py +9 -2
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh_core.egg-info/PKG-INFO +1 -1
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/LICENSE +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/README.md +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/B_os.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Barchive/__init__.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Barchive/archive.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Brecorder/__init__.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Btable/__init__.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Btable/auto_table.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Bterminal/__init__.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Bterminal/cmd.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Bterminal/run_func.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Btqdm/__init__.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Btqdm/my_tqdm.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Butils/__init__.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Butils/decorator.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Butils/text_style.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Butils/timer.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Bwriter/__init__.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/Bwriter/writer.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh/core/__init__.py +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh_core.egg-info/SOURCES.txt +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh_core.egg-info/dependency_links.txt +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh_core.egg-info/entry_points.txt +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh_core.egg-info/requires.txt +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/byzh_core.egg-info/top_level.txt +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/setup.cfg +0 -0
- {byzh_core-0.0.9.0 → byzh_core-0.0.9.2}/setup.py +0 -0
@@ -1,4 +1,5 @@
|
|
1
1
|
import pandas as pd
|
2
|
+
from typing import Literal
|
2
3
|
|
3
4
|
from .. import B_os
|
4
5
|
|
@@ -10,7 +11,7 @@ class B_Record1d:
|
|
10
11
|
recorder.write(name="Bob", age=30, city="Beijing")
|
11
12
|
recorder.write(name="Charlie", age=22, city="Shenzhen")
|
12
13
|
'''
|
13
|
-
def __init__(self, csv_path, mode
|
14
|
+
def __init__(self, csv_path, mode:Literal["w", "a"]="w"):
|
14
15
|
self.csv_path = csv_path
|
15
16
|
|
16
17
|
B_os.makedirs(csv_path)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import pandas as pd
|
2
|
-
from typing import
|
2
|
+
from typing import Literal
|
3
3
|
|
4
4
|
from .. import B_os
|
5
5
|
|
6
6
|
class B_Record2d:
|
7
|
-
def __init__(self, csv_path, mode
|
7
|
+
def __init__(self, csv_path, mode:Literal["w", "a"]="w"):
|
8
8
|
self.csv_path = csv_path
|
9
9
|
|
10
10
|
B_os.makedirs(csv_path)
|
@@ -28,8 +28,15 @@ class B_Record2d:
|
|
28
28
|
self.data.loc[row, col] = value
|
29
29
|
self.__save()
|
30
30
|
|
31
|
+
# 转置
|
32
|
+
def T(self):
|
33
|
+
self.data = self.data.T.copy()
|
34
|
+
self.__save()
|
35
|
+
return self
|
36
|
+
|
31
37
|
def write(self, row, col, value):
|
32
38
|
self[row, col] = value
|
39
|
+
return self
|
33
40
|
|
34
41
|
def get(self, row, col):
|
35
42
|
return self[row, col]
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|