No project description provided
Project description
WikiCrop
WikiCrop là thư viện cung cấp tập dữ liệu CSV về các loại cây trồng nông nghiệp phổ biến, giúp các nhà phát triển hoặc nhà phân tích dữ liệu dễ dàng truy xuất thông tin bằng pandas.
Cài đặt
Bạn có thể cài đặt hoặc cập nhật thư viện WikiCrop thông qua pip:
pip install --upgrade wikicrop
Cách sử dụng
Sau khi cài đặt thành công thư viện, bạn có thể gọi trực tiếp các hàm tải dữ liệu về từng loại cây như sau:
from wikicrop import species
# 1. Tải dữ liệu lúa
df_rice = species.load_rice()
print(f"Số dòng dữ liệu Lúa: {len(df_rice)}")
# 2. Tải dữ liệu đậu nành
df_soybean = species.load_soybean()
print(f"Số dòng dữ liệu Đậu Nành: {len(df_soybean)}")
# 3. Tải dữ liệu đậu tương
df_soy = species.load_soy()
print(f"Số dòng dữ liệu Đậu Tương: {len(df_soy)}")
# 4. Tải dữ liệu đậu xanh
df_mung_bean = species.load_mung_bean()
print(f"Số dòng dữ liệu Đậu Xanh: {len(df_mung_bean)}")
# 5. Tải dữ liệu ngô
df_corn = species.load_corn()
print(f"Số dòng dữ liệu Ngô: {len(df_corn)}")
Yêu cầu
Thư viện này đã được tích hợp sẵn các gói dữ liệu (dataset dạng CSV). Yêu cầu duy nhất để thư viện này hoạt động là:
- Dùng Python 3.x
- Cài đặt sẵn thư viện
pandas(hệ thống sẽ tự cài nếu bạn dùngpip install wikicrop).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wikicrop-0.3.tar.gz.
File metadata
- Download URL: wikicrop-0.3.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0677e1d72a348ed6920298aa6fcb4705e234a7eca96a1e33be2db242282891f5
|
|
| MD5 |
2d72d751e0a61d8e75321ac9221c08b9
|
|
| BLAKE2b-256 |
32ac342cf0fa3f54c81296c3df9c4399d3880df3f91e871485c9eedd6ec9f4dd
|
File details
Details for the file wikicrop-0.3-py3-none-any.whl.
File metadata
- Download URL: wikicrop-0.3-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd1f37d488f7123f19f79db31402cc26c4376c9dfee6982d32a392b60a038aba
|
|
| MD5 |
b19682c6576e2ad6398dad35605a3f1b
|
|
| BLAKE2b-256 |
8fa362799e9ed07afe01219ab01dad76ef2101048ce9f9212389370ad2b6702d
|