Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] FutureWarning spam within Economy menu #2002

Closed
JerBouma opened this issue Jun 28, 2022 · 1 comment
Closed

[Bug] FutureWarning spam within Economy menu #2002

JerBouma opened this issue Jun 28, 2022 · 1 comment
Labels
bug Fix bug

Comments

@JerBouma
Copy link
Contributor

See:

2022 Jun 28, 03:30 (🦋) /economy/ $ valuation
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)

                                                                  Group Valuation Data                                                                   
┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━┳━━━━━━┳━━━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━┓
┃ Name                   ┃ MarketCap ┃ P/E   ┃ FwdP/E ┃ PEG  ┃ P/S  ┃ P/B  ┃ P/C   ┃ P/FCF ┃ EPSpast5Y ┃ EPSnext5Y ┃ Salespast5Y ┃ Change ┃ Volume (1M) ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━╇━━━━━━╇━━━━━━╇━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━┩
│ Utilities              │ 1387.85   │ 24.54 │ 3.44   │ 3.38 │ 1.83 │ 1.24 │ 27.14 │ 59.43 │ 0.02      │ 0.07      │ 0.06        │ 0.01   │ 125.90      │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Technology             │ 11120.83  │ 24.93 │ 18.45  │ 1.63 │ 3.98 │ 2.16 │ 13.74 │ 29.95 │ 0.23      │ 0.15      │ 0.15        │ -0.01  │ 1510.00     │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Real Estate            │ 1697.54   │ 29.81 │ 18.95  │ 3.07 │ 5.12 │ 2.32 │ 24.69 │ 77.61 │ 0.11      │ 0.10      │ 0.10        │ -0.01  │ 364.31      │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Industrials            │ 4107.62   │ 19.89 │ 14.41  │ 1.40 │ 1.61 │ 3.51 │ 11.75 │ 26.48 │ 0.16      │ 0.14      │ 0.06        │ -0.00  │ 570.49      │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Healthcare             │ 7131.46   │ 22.99 │ 15.07  │ 2.27 │ 1.98 │ 4.06 │ 12.03 │ 26.38 │ 0.16      │ 0.10      │ 0.15        │ 0.00   │ 2020.00     │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Financial              │ 8262.82   │ 11.43 │ 11.75  │ 1.14 │ 2.40 │ 0.01 │ 0.49  │ 11.64 │ 0.20      │ 0.10      │ 0.07        │ -0.00  │ 786.29      │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Energy                 │ 3357.70   │ 10.70 │ 7.08   │ 0.75 │ 0.76 │ 1.38 │ 9.00  │ 11.03 │ 0.41      │ 0.14      │ 0.11        │ 0.03   │ 846.81      │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Consumer Defensive     │ 3508.84   │ 22.91 │ 20.66  │ 2.53 │ 1.31 │ 4.00 │ 21.53 │ 51.67 │ 0.08      │ 0.09      │ 0.05        │ -0.00  │ 335.23      │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Consumer Cyclical      │ 5813.62   │ 22.54 │ 11.76  │ 0.88 │ 0.86 │ 2.95 │ 9.28  │ 34.65 │ 0.29      │ 0.26      │ 0.23        │ -0.01  │ 1230.00     │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Communication Services │ 6088.05   │ 18.01 │ 14.64  │ 1.15 │ 2.54 │ 2.69 │ 11.55 │ 30.76 │ 0.20      │ 0.16      │ 0.19        │ -0.01  │ 604.10      │
├────────────────────────┼───────────┼───────┼────────┼──────┼──────┼──────┼───────┼───────┼───────────┼───────────┼─────────────┼────────┼─────────────┤
│ Basic Materials        │ 1827.43   │ 8.65  │ 10.40  │ 0.89 │ 1.25 │ 1.85 │ 10.64 │ 17.48 │ 0.29      │ 0.10      │ 0.13        │ 0.01   │ 463.85      │
└────────────────────────┴───────────┴───────┴────────┴──────┴──────┴──────┴───────┴───────┴───────────┴───────────┴─────────────┴────────┴─────────────┘

2022 Jun 28, 03:30 (🦋) /economy/ $

Also:

2022 Jun 28, 03:31 (🦋) /economy/ $ performance
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)
/Users/jeroenbouma/opt/anaconda3/envs/gst/lib/python3.8/site-packages/finvizfinance/group/overview.py:111: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
  df = df.append(info_dict, ignore_index=True)

                                                        Group Performance Data                                                         
┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━┓
┃ Name                   ┃ Week ┃ Month ┃ 3Month ┃ 6Month ┃ 1Year ┃ YTD   ┃ Recom ┃ AvgVolume (1M) ┃ RelVolume ┃ Change ┃ Volume (1M) ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━╇━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━┩
│ Utilities              │ 0.07 │ -0.06 │ -0.05  │ -0.01  │ 0.06  │ -0.03 │ 2.37  │ 174.05         │ 0.72      │ 0.01   │ 125.90      │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Technology             │ 0.07 │ -0.00 │ -0.19  │ -0.28  │ -0.18 │ -0.28 │ 2.01  │ 1650.00        │ 0.92      │ -0.01  │ 1510.00     │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Real Estate            │ 0.07 │ -0.00 │ -0.09  │ -0.17  │ -0.24 │ -0.19 │ 2.21  │ 401.33         │ 0.91      │ -0.01  │ 364.31      │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Industrials            │ 0.05 │ -0.03 │ -0.15  │ -0.16  │ -0.15 │ -0.18 │ 2.26  │ 669.47         │ 0.85      │ -0.00  │ 570.49      │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Healthcare             │ 0.09 │ -0.00 │ -0.06  │ -0.12  │ -0.10 │ -0.12 │ 2.07  │ 1540.00        │ 1.31      │ 0.00   │ 2020.00     │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Financial              │ 0.04 │ -0.05 │ -0.17  │ -0.16  │ -0.15 │ -0.16 │ 2.26  │ 1030.00        │ 0.76      │ -0.00  │ 786.29      │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Energy                 │ 0.02 │ -0.12 │ -0.08  │ 0.23   │ 0.21  │ 0.23  │ 2.21  │ 864.92         │ 0.98      │ 0.03   │ 846.81      │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Consumer Defensive     │ 0.06 │ 0.00  │ -0.05  │ -0.06  │ -0.04 │ -0.08 │ 2.28  │ 388.17         │ 0.86      │ -0.00  │ 335.23      │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Consumer Cyclical      │ 0.07 │ 0.05  │ -0.19  │ -0.28  │ -0.28 │ -0.28 │ 2.12  │ 1410.00        │ 0.87      │ -0.01  │ 1230.00     │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Communication Services │ 0.06 │ 0.03  │ -0.17  │ -0.26  │ -0.26 │ -0.25 │ 1.90  │ 762.80         │ 0.79      │ -0.01  │ 604.10      │
├────────────────────────┼──────┼───────┼────────┼────────┼───────┼───────┼───────┼────────────────┼───────────┼────────┼─────────────┤
│ Basic Materials        │ 0.00 │ -0.11 │ -0.19  │ -0.11  │ -0.12 │ -0.12 │ 2.26  │ 549.41         │ 0.84      │ 0.01   │ 463.85      │
└────────────────────────┴──────┴───────┴────────┴────────┴───────┴───────┴───────┴────────────────┴───────────┴────────┴─────────────┘

2022 Jun 28, 03:31 (🦋) /economy/ $
@JerBouma JerBouma added the bug Fix bug label Jun 28, 2022
@soggyomelette
Copy link
Contributor

I think this has to do with using DataFrame.append() in the finviz library which is no longer supported. However, they have already removed use of DataFrame.append() so just updating the library should do the trick (https://github.com/lit26/finvizfinance/blob/master/finvizfinance/group/overview.py)

DidierRLopes added a commit that referenced this issue Jun 28, 2022
* Update requirements-full.txt

Updating finvizfinance version

* Update requirements.txt

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug
Projects
None yet
Development

No branches or pull requests

2 participants