semvec/pypi-packages huggingface dataset:
riskreward 0.0.18
Computes financial profitability metrics from pandas.Series of returns.
Keywords: sharpe ratio,sortino ratio,omega ratio,upside potential,risk-adjusted return,stock market,modern portfolio theory

.. image:: https://github.com/rtmigo/riskreward.python/workflows/ci%20test/badge.svg?branch=main
   :target: https://github.com/rtmigo/riskreward.python/actions
   :alt: Actions Status


Python package for computing financial profitability metrics from ``pandas.Series`` of returns.

The package is being tested in Python 3.7, 3.8, and 3.9. Please don't try to run it in Visual Basic.

Install
=======

.. code-block::

   pip install riskreward

Use
===

.. code-block:: python

   import numpy as np
   import pandas as pd

   from riskreward import omegaRatio, sharpeRatio

   def getWeeklyClosePrices() -> pd.Series:
       # a quick and dirty sample way to get weekly closing prices 
       import yfinance
       ticker = yfinance.Ticker("AMD")
       quotes = ticker.history(period="1d", start='2010-01-01', end='2020-01-01')
       return quotes.asfreq("W-Fri")["Close"]

   closePrices = getWeeklyClosePrices()
   logReturns = (np.log(closePrices)-np.log(closePrices.shift(1))).dropna()

   # print ratios based on weekly log returns
   print("Sharpe ratio: ", sharpeRatio(logReturns))
   print("Omega ratio: ", omegaRatio(logReturns, mar=0.01))
dsc40graph 0.2.0
A simple graph library used in DSC 40B @ UCSD.

dsc40graph
==========

![Run Tests](https://github.com/eldridgejm/dsc40graph/workflows/Run%20Tests/badge.svg)

A simple graph library used in DSC 40B at UCSD.

See the documentation at  https://eldridgejm.github.io/dsc40graph/.

## Installation

This module is on PyPI. To install it, simply run `pip install dsc40graph`.
seuratToAdata 0.0.6
Convert seurat obj to Adata
Requires Python: >=3.5
Keywords: Bioinformatics,Genomics,Computational Biologist

# Convert Seurat Obj (rds) to Scanpy obj (adata)

## Usage:
```
conda enve create -f env.yaml
conda activate seuratToAdata

usage: seuratToAdata [-h] -o OUTPUT [--RNA] rds

positional arguments:
  rds                   Use - for STDIN or path for seurat obj(*.rds file)

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Specify path to write the results (default: None)
  --RNA                 Whether is store in the RNA slot (default: False)
```

## Issues might arise:
1. UnicodeDecodeError: 'ascii' codec can't decode byte 0xcf in position 1: ordinal not in range(128).
    
    Solved by fixing the locale: https://stackoverflow.com/questions/51026315/how-to-solve-unicodedecodeerror-in-python-3-6/51027262#51027262