python3/joblib/delayed\343\201\256\351\226\242\346\225\260\345\206\205\343\201\213\343\202\211Plotly\343\201\256fig\343\202\222\350\277\224\343\201\231\343\201\250\351\201\205\343\201\204.md
... ...
@@ -7,7 +7,7 @@ from joblib import Parallel, delayed
7 7
import plotly.express as px
8 8
9 9
10
-def some_function(df: DataFrame, column_name: str):
10
+def generate_fig(df: DataFrame, column_name: str):
11 11
fig = px.scatter(
12 12
df,
13 13
x=df.index,
... ...
@@ -20,7 +20,7 @@ if __name__ == '__main__':
20 20
df = DataFrame() #indexがdatetimeなDataFrame
21 21
column_name_list = ['hoge', 'fuga', '...'] #indexと共に散布図を作りたいカラム名
22 22
23
- figs = Parallel(n_jobs=10)(delayed(some_function)(
23
+ figs = Parallel(n_jobs=10)(delayed(generate_fig)(
24 24
df=df,
25 25
column_name=column_name,
26 26
) for column_name in column_name_list)