imsciences 1.0.1__py3-none-any.whl → 1.0.3__py3-none-any.whl
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.
Potentially problematic release.
This version of imsciences might be problematic. Click here for more details.
- imsciences/pull.py +8 -0
- imsciences/vis.py +16 -3
- {imsciences-1.0.1.dist-info → imsciences-1.0.3.dist-info}/METADATA +1 -1
- imsciences-1.0.3.dist-info/RECORD +12 -0
- {imsciences-1.0.1.dist-info → imsciences-1.0.3.dist-info}/WHEEL +1 -1
- imsciences-1.0.1.dist-info/RECORD +0 -12
- {imsciences-1.0.1.dist-info → imsciences-1.0.3.dist-info}/LICENSE.txt +0 -0
- {imsciences-1.0.1.dist-info → imsciences-1.0.3.dist-info}/PKG-INFO-TomG-HP-290722 +0 -0
- {imsciences-1.0.1.dist-info → imsciences-1.0.3.dist-info}/top_level.txt +0 -0
imsciences/pull.py
CHANGED
|
@@ -2704,6 +2704,14 @@ class datapull:
|
|
|
2704
2704
|
# Consider if 0 is the appropriate fill value for your use case
|
|
2705
2705
|
# weekly_df = weekly_df.fillna(0)
|
|
2706
2706
|
|
|
2707
|
+
# Create new column names, keeping "OBS" unchanged
|
|
2708
|
+
new_columns = []
|
|
2709
|
+
for col in weekly_df.columns:
|
|
2710
|
+
if col == "OBS":
|
|
2711
|
+
new_columns.append(col)
|
|
2712
|
+
else:
|
|
2713
|
+
new_columns.append(f"{col}_{cdid}")
|
|
2714
|
+
|
|
2707
2715
|
return weekly_df
|
|
2708
2716
|
print("No data successfully fetched or processed.")
|
|
2709
2717
|
return pd.DataFrame()
|
imsciences/vis.py
CHANGED
|
@@ -51,7 +51,7 @@ class datavis:
|
|
|
51
51
|
"font_size": 10,
|
|
52
52
|
},
|
|
53
53
|
}
|
|
54
|
-
self.current_theme = "
|
|
54
|
+
self.current_theme = "default"
|
|
55
55
|
|
|
56
56
|
def help(self, method=None, *, show_examples=True):
|
|
57
57
|
"""
|
|
@@ -546,7 +546,7 @@ class datavis:
|
|
|
546
546
|
|
|
547
547
|
return fig
|
|
548
548
|
|
|
549
|
-
def plot_two(self, data_config, *, same_axis=True):
|
|
549
|
+
def plot_two(self, data_config, *, same_axis=True, title="Comparison Plot"):
|
|
550
550
|
"""
|
|
551
551
|
Plots specified columns from two different DataFrames with themed styling.
|
|
552
552
|
|
|
@@ -556,6 +556,8 @@ class datavis:
|
|
|
556
556
|
Dictionary with keys: 'df1', 'col1', 'df2', 'col2', 'date_column'
|
|
557
557
|
same_axis : bool, default True
|
|
558
558
|
If True, plot both traces on the same y-axis; otherwise, use separate y-axes
|
|
559
|
+
title : str, default "Comparison Plot"
|
|
560
|
+
Custom title for the plot
|
|
559
561
|
|
|
560
562
|
Returns
|
|
561
563
|
-------
|
|
@@ -636,7 +638,18 @@ class datavis:
|
|
|
636
638
|
}
|
|
637
639
|
)
|
|
638
640
|
|
|
639
|
-
|
|
641
|
+
# Update layout with custom title and legend positioning
|
|
642
|
+
fig.update_layout(
|
|
643
|
+
title=title,
|
|
644
|
+
showlegend=True,
|
|
645
|
+
legend={
|
|
646
|
+
"orientation": "h",
|
|
647
|
+
"yanchor": "bottom",
|
|
648
|
+
"y": 1.02,
|
|
649
|
+
"xanchor": "center",
|
|
650
|
+
"x": 0.5
|
|
651
|
+
}
|
|
652
|
+
)
|
|
640
653
|
|
|
641
654
|
return fig
|
|
642
655
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
imsciences/__init__.py,sha256=V9YcZJaBVHi9OdxMnhF8T8O-TSgf83vcm7ai_iU3ODc,119
|
|
2
|
+
imsciences/geo.py,sha256=eLMuLUP8uUmz824qKSWaUR15ou-Kktt56QVxY8ZWIZw,16247
|
|
3
|
+
imsciences/mmm.py,sha256=nQ_XyBRBXkn43h8-4SiGVZmG1Z9Q2iQIIHToknqtX2A,87485
|
|
4
|
+
imsciences/pull.py,sha256=_nPN3mplhvDDPf-adtMUMdDw71jlgJR3itA5J1EusrQ,124713
|
|
5
|
+
imsciences/unittesting.py,sha256=XW1kHB-ykmR3Pwf0LR-zD9vomkv83YTLAZpfKpgXC3E,49725
|
|
6
|
+
imsciences/vis.py,sha256=ybMrDU-OiXDY_FlTkZqmnMDoU044AZMuQefMwye2wj4,27684
|
|
7
|
+
imsciences-1.0.3.dist-info/LICENSE.txt,sha256=lVq2QwcExPX4Kl2DHeEkRrikuItcDB1Pr7yF7FQ8_z8,1108
|
|
8
|
+
imsciences-1.0.3.dist-info/METADATA,sha256=jPGtGLWGNNDHN8qbX-8Hs7dePnD4tHFXQWAf7t_EGBI,18872
|
|
9
|
+
imsciences-1.0.3.dist-info/PKG-INFO-TomG-HP-290722,sha256=RMcthCSyWmU6IBsXGL-nYqw0RP06pzjPKK3dzOQcU-8,18846
|
|
10
|
+
imsciences-1.0.3.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
11
|
+
imsciences-1.0.3.dist-info/top_level.txt,sha256=hsENS-AlDVRh8tQJ6-426iUQlla9bPcGc0-UlFF0_iU,11
|
|
12
|
+
imsciences-1.0.3.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
imsciences/__init__.py,sha256=V9YcZJaBVHi9OdxMnhF8T8O-TSgf83vcm7ai_iU3ODc,119
|
|
2
|
-
imsciences/geo.py,sha256=eLMuLUP8uUmz824qKSWaUR15ou-Kktt56QVxY8ZWIZw,16247
|
|
3
|
-
imsciences/mmm.py,sha256=nQ_XyBRBXkn43h8-4SiGVZmG1Z9Q2iQIIHToknqtX2A,87485
|
|
4
|
-
imsciences/pull.py,sha256=AJnR5LkjaVswEAZBOoyl1EeUcyMdZG5v_oeloR1XlXU,124403
|
|
5
|
-
imsciences/unittesting.py,sha256=XW1kHB-ykmR3Pwf0LR-zD9vomkv83YTLAZpfKpgXC3E,49725
|
|
6
|
-
imsciences/vis.py,sha256=ajRsWXkHH13jyEA_7m1AVK_P6l7snqskgYZGxaWmiEg,27273
|
|
7
|
-
imsciences-1.0.1.dist-info/LICENSE.txt,sha256=lVq2QwcExPX4Kl2DHeEkRrikuItcDB1Pr7yF7FQ8_z8,1108
|
|
8
|
-
imsciences-1.0.1.dist-info/METADATA,sha256=RPtVFR8vbJyZpBbsx7pJ80UtYW8EdeiUZVpYwcDxjAM,18872
|
|
9
|
-
imsciences-1.0.1.dist-info/PKG-INFO-TomG-HP-290722,sha256=RMcthCSyWmU6IBsXGL-nYqw0RP06pzjPKK3dzOQcU-8,18846
|
|
10
|
-
imsciences-1.0.1.dist-info/WHEEL,sha256=ixB2d4u7mugx_bCBycvM9OzZ5yD7NmPXFRtKlORZS2Y,91
|
|
11
|
-
imsciences-1.0.1.dist-info/top_level.txt,sha256=hsENS-AlDVRh8tQJ6-426iUQlla9bPcGc0-UlFF0_iU,11
|
|
12
|
-
imsciences-1.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|