semvec/pypi-packages huggingface dataset:
seabornai 0.0.2
seabornai is a Python library that leverages the OpenAI ChatGPT API to generate Seaborn graphs based on supplied data and prompts/questions.
Requires Python: >=3.6

# seabornai

[![Downloads](https://pepy.tech/badge/seabornai/month)](https://pepy.tech/project/seabornai)

seabornai is a Python library that leverages the OpenAI ChatGPT API to generate Seaborn graphs based on supplied data and prompts/questions.

**Disclaimer:** Usage of this library requires an OpenAI API key and subscription, as well as the Seaborn library installed.

## Installation

You can install seabornai using pip:

```
pip install seabornai
```

## Usage

```python
from seabornai import generate_graph, set_openai_api_key

# Set your OpenAI API key
api_key = input("Please enter your OpenAI API key: ")
set_openai_api_key(api_key)

# Example usage
data = {"x_column": [1, 2, 3], "y_column": [4, 5, 6]}
prompt = "What is the relationship between x_column and y_column?"

# Generate a Seaborn graph
generate_graph(data, prompt)
```

## Features

- Generate Seaborn graphs based on supplied data and prompts/questions.
- Customize graph style, size, labels, titles, legends, and colors.
- Choose from various types of plots, such as bar plots, scatter plots, line plots, or box plots.
- Perform statistical analysis by adding regression lines, confidence intervals, or hypothesis testing.
- Save the generated graph to a file in different formats (e.g., PNG, PDF, SVG).

## Examples

Here are some examples of using seabornai to generate Seaborn graphs:

### Example 1: Scatter Plot

```python
data = {"x_column": [1, 2, 3, 4], "y_column": [2, 4, 6, 8]}
prompt = "What is the relationship between x_column and y_column?"

generate_graph(data, prompt, style="darkgrid", size=(8, 6))
```

### Example 2: Bar Plot

```python
data = {"category": ["A", "B", "C"], "value": [10, 20, 30]}
prompt = "How does the value vary across different categories?"

generate_graph(data, prompt, style="whitegrid", size=(6, 4))
```

## License

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).
srec 1.1
A simple module to calculate the time required for leveling up in Honkai: Star rail.
Requires Python: >=3.7

# 计算开拓等级升级所需时间计算
计算升级所需时间

尝试发布PyPI

# Todo
- [ ] 每日任务经验
- [ ] 大月卡体力


# 安装
```
pip install srec
```

# 示例
```python
import srec

current_level = 47
target_level = 70
current_exp = 2470
num_potions = 33
current_stamina = 39

r = srec.Calculate(current_level, target_level, current_exp, num_potions, current_stamina)

print(r.designated_time)
```

# 各开拓等级所需经验表
| 开拓等级 | 到下一级所需里程 | 里程差值 | 累计里程 |
| --- | --- | --- | --- |
| 1 | 450 | N/A | 0 |
| 2 | 500 | 50 | 450 |
| 3 | 550 | 50 | 950 |
| 4 | 610 | 60 | 1500 |
| 5 | 670 | 60 | 2110 |
| 6 | 720 | 50 | 2780 |
| 7 | 780 | 60 | 3500 |
| 8 | 840 | 60 | 4280 |
| 9 | 900 | 60 | 5120 |
| 10 | 960 | 60 | 6020 |
| 11 | 1020 | 60 | 6980 |
| 12 | 1070 | 50 | 8000 |
| 13 | 1130 | 60 | 9070 |
| 14 | 1190 | 60 | 10200 |
| 15 | 1250 | 60 | 11390 |
| 16 | 1310 | 60 | 12640 |
| 17 | 1370 | 60 | 13950 |
| 18 | 1430 | 60 | 15320 |
| 19 | 1500 | 70 | 16750 |
| 20 | 1600 | 100 | 18250 |
| 21 | 1710 | 110 | 19850 |
| 22 | 1830 | 120 | 21560 |
| 23 | 1950 | 120 | 23390 |
| 24 | 2080 | 130 | 25340 |
| 25 | 2210 | 130 | 27420 |
| 26 | 2350 | 140 | 29630 |
| 27 | 2480 | 130 | 31980 |
| 28 | 2620 | 140 | 34460 |
| 29 | 2750 | 130 | 37080 |
| 30 | 2850 | 100 | 39830 |
| 31 | 2960 | 110 | 42680 |
| 32 | 3080 | 120 | 45640 |
| 33 | 3200 | 120 | 48720 |
| 34 | 3330 | 130 | 51920 |
| 35 | 3460 | 130 | 55250 |
| 36 | 3600 | 140 | 58710 |
| 37 | 3730 | 130 | 62310 |
| 38 | 3870 | 140 | 66040 |
| 39 | 4000 | 130 | 69910 |
| 40 | 4140 | 140 | 73910 |
| 41 | 4280 | 140 | 78050 |
| 42 | 4430 | 150 | 82330 |
| 43 | 4570 | 140 | 86760 |
| 44 | 4710 | 140 | 91330 |
| 45 | 4860 | 150 | 96040 |
| 46 | 5000 | 140 | 100900 |
| 47 | 5150 | 150 | 105900 |
| 48 | 5300 | 150 | 111050 |
| 49 | 5440 | 140 | 116350 |
| 50 | 5700 | 260 | 121790 |
| 51 | 6150 | 450 | 127490 |
| 52 | 6630 | 480 | 133640 |
| 53 | 7130 | 500 | 140270 |
| 54 | 7640 | 510 | 147400 |
| 55 | 8170 | 530 | 155040 |
| 56 | 8700 | 530 | 163210 |
| 57 | 9230 | 530 | 171910 |
| 58 | 9780 | 550 | 181140 |
| 59 | 10330 | 550 | 190920 |
| 60 | 20300 | 9970 | 201250 |
| 61 | 21780 | 1480 | 221550 |
| 62 | 23350 | 1570 | 243330 |
| 63 | 24970 | 1620 | 266680 |
| 64 | 26630 | 1660 | 291650 |
| 65 | 65070 | 38440 | 318280 |
| 66 | 68810 | 3740 | 383350 |
| 67 | 72490 | 3680 | 452160 |
| 68 | 76120 | 3630 | 524650 |
| 69 | 79710 | 3590 | 600770 |
| 70 | 等级上限！| N/A | 680480 |