Kristijan commited on
Commit
82d9348
·
1 Parent(s): c943bd7

run ruff for import sorting

Browse files
Files changed (2) hide show
  1. analysis.py +8 -7
  2. app.py +7 -7
analysis.py CHANGED
@@ -1,21 +1,22 @@
1
- from pathlib import Path
2
  from datetime import datetime, timedelta
 
 
 
3
  import polars as pl
4
  from great_tables import GT, md
5
- import numpy as np
6
  from matplotlib import pyplot as plt
7
 
8
  from .hashtags import (
9
- hashtag_analysis,
10
- secondary_analyzer,
11
- make_table1,
12
  COL_AUTHOR_ID,
13
- COL_TIME,
14
  COL_POST,
 
15
  OUTPUT_COL_HASHTAGS,
16
  OUTPUT_COL_TIMESPAN,
 
 
 
17
  )
18
- from .plots import plot_gini_annot, plot_bar, FS
19
 
20
  if __name__ == "__main__":
21
  import argparse
 
 
1
  from datetime import datetime, timedelta
2
+ from pathlib import Path
3
+
4
+ import numpy as np
5
  import polars as pl
6
  from great_tables import GT, md
 
7
  from matplotlib import pyplot as plt
8
 
9
  from .hashtags import (
 
 
 
10
  COL_AUTHOR_ID,
 
11
  COL_POST,
12
+ COL_TIME,
13
  OUTPUT_COL_HASHTAGS,
14
  OUTPUT_COL_TIMESPAN,
15
+ hashtag_analysis,
16
+ make_table1,
17
+ secondary_analyzer,
18
  )
19
+ from .plots import FS, plot_bar, plot_gini_annot
20
 
21
  if __name__ == "__main__":
22
  import argparse
app.py CHANGED
@@ -1,14 +1,14 @@
1
- from plots import plot_gini_plotly, plot_bar_plotly, plot_users_plotly, MANGO_DARK_GREEN
2
- from hashtags import secondary_analyzer, COL_AUTHOR_ID, COL_TIME, COL_POST
3
- from constants import RAW_DATASET_PARQUET_HF, PRIMARY_OUTPUT_PARQUET_HF
4
- import polars as pl
5
- import numpy as np
6
  from functools import lru_cache
7
 
 
8
  import plotly.graph_objects as go
9
- from shiny import App, ui, render, reactive
10
- from shinywidgets import render_widget, output_widget
 
11
 
 
 
 
12
 
13
  MANGO_ORANGE2 = "#f3921e"
14
  LOGO_URL = "https://raw.githubusercontent.com/CIB-Mango-Tree/CIB-Mango-Tree-Website/main/assets/images/mango-text.PNG"
 
 
 
 
 
 
1
  from functools import lru_cache
2
 
3
+ import numpy as np
4
  import plotly.graph_objects as go
5
+ import polars as pl
6
+ from shiny import App, reactive, render, ui
7
+ from shinywidgets import output_widget, render_widget
8
 
9
+ from constants import PRIMARY_OUTPUT_PARQUET_HF, RAW_DATASET_PARQUET_HF
10
+ from hashtags import COL_AUTHOR_ID, COL_POST, COL_TIME, secondary_analyzer
11
+ from plots import MANGO_DARK_GREEN, plot_bar_plotly, plot_gini_plotly, plot_users_plotly
12
 
13
  MANGO_ORANGE2 = "#f3921e"
14
  LOGO_URL = "https://raw.githubusercontent.com/CIB-Mango-Tree/CIB-Mango-Tree-Website/main/assets/images/mango-text.PNG"