Skip to main content

A database with multiple data sets that support drawing, These data sets are: World population data set, World Carbon dioxide Concentration data set, World Number of Cities data set, China number of population data set, China number of space vehicles data set......

Project description

A database with multiple data sets that support drawing, These data sets are: World population data set, World Carbon dioxide Concentration data set, World Number of Cities data set, China number of population data set, China number of space vehicles data set......

Features

This project is a dataset with multiple functions, there are many datasets in it, and it has been uploaded to Pypi.

Download

This project uses Pypi, so it is recommended to use Pypi to download

Code: pip3 install Wdatabase

Use

The package name when we upload is not the same as the package name used in actual use When importing, use the following code

from Wdata import WdataMain as main

The main class has the following functions:

Functions Introduction Syntax Return Type
draw Draw Func() None
Save_file Save file Func(filename:str) bool

Import Data

Wdata has a lot of data sets, here we use 200 years of population growth data as an example

The syntax of Wdata_class is as follows: WdataMain(json_fname: str)

json_fname is the name of the dataset

from Wdata import WdataMain as main

test = main('Population_growth')  # import population growth over 200 years

Get data

We can use the dict() function to fetch the data

such as these codes

from Wdata import WdataMain as main

test = main('Population_growth')  # import population growth over 200 years
print(dict(test))

after running

~/python test.py
{
    '1800': 900000000,
    '1820': 1100000000,
    '1840': 1200000000,
    '1860': 1300000000,
    '1880': 1400000000,
    '1900': 1650000000,
    '1920': 1800000000,
    '1940': 2200000000,
    '1960': 3000000000,
    '1980': 4400000000,
    '2000': 5900000000,
    '2022': 7400000000
    }

Drawing

Drawing functions use the draw() function as the following code

from Wdata import WdataMain as main

test = main('Population_growth')  # import population growth over 200 years
test.draw()

The result is this

Data save

You can use the Save_file() function to save data

The syntax of Save_file is Save_file(filename:str) -> None

Parameter Description: The filename parameter is used to describe the save file

as the following code

from Wdata import WdataMain as main

test = main('Population_growth')  # import population growth over 200 years
test.Save_file('Package_test')  # This function will automatically add the .json suffix

What data do we have

Currently we have the following data

name description unit of measure
Population_growth Population Growth 1800-2022 People
Chinese_spacecraft 2017-2020.06 Chinese spacecraft launches Spacecraft
World_spacecraft 2017-2020.06 World Spacecraft Launches Spacecraft

The above data comes from Bing and Baidu. The author cannot guarantee the accuracy of the data and should not be used for professional purposes

Donate

Due to special reasons, the author was unable to register a Paypal account and was forced to use Alipay

For details, please see Donation Instructions

About Pypi

The Wdataorg team has used twine to upload this library to Pypi

Wdataorg Pypi account

Wdatabase Pypi warehouse address

License

This open source project uses Apache License 2.0

In the process of using this open source project, please use it strictly in accordance with the license

The final interpretation right belongs to the development team Wdataorg

Project License Link

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

Wdatabase-2.0.2.tar.gz (17.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

Wdatabase-2.0.2-py3.10.egg (17.0 kB view details)

Uploaded Egg

Wdatabase-2.0.2-py3.9.egg (16.9 kB view details)

Uploaded Egg

Wdatabase-2.0.2-py3.8.egg (16.9 kB view details)

Uploaded Egg

File details

Details for the file Wdatabase-2.0.2.tar.gz.

File metadata

  • Download URL: Wdatabase-2.0.2.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for Wdatabase-2.0.2.tar.gz
Algorithm Hash digest
SHA256 9f35f66ce0ee7a5588ffc51d286026e9eb7f338ff74858c0f03bd6857dd97fc0
MD5 9cafbd39e8b8d24a8a039c6cfa32e4bc
BLAKE2b-256 a1ad89e419c795f0e87b5bb81ae36db48509ac0208181dfd34541b9da44f1e18

See more details on using hashes here.

File details

Details for the file Wdatabase-2.0.2-py3.10.egg.

File metadata

  • Download URL: Wdatabase-2.0.2-py3.10.egg
  • Upload date:
  • Size: 17.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for Wdatabase-2.0.2-py3.10.egg
Algorithm Hash digest
SHA256 94968e991330293c453ffc9f174bb827a7c26efe2b44ef937349bfb8c69e0335
MD5 fbd57ccfe26b3f296dc5530462429a3c
BLAKE2b-256 600ea3559fa02c07a46347fad44a33cddface511cf5624cc5ea919e0ba903222

See more details on using hashes here.

File details

Details for the file Wdatabase-2.0.2-py3.9.egg.

File metadata

  • Download URL: Wdatabase-2.0.2-py3.9.egg
  • Upload date:
  • Size: 16.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for Wdatabase-2.0.2-py3.9.egg
Algorithm Hash digest
SHA256 cda9b6aa62cbd1a6894f00346dd9ee0afa0e31a26e7acd8f5a61449cd2fb25be
MD5 b059c280f71adb25f546a499d57559a5
BLAKE2b-256 8b2ff9b5886842d6129f56e6493a2ddb196f6cb09fa60b8a9cb15726aed9ab68

See more details on using hashes here.

File details

Details for the file Wdatabase-2.0.2-py3.8.egg.

File metadata

  • Download URL: Wdatabase-2.0.2-py3.8.egg
  • Upload date:
  • Size: 16.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for Wdatabase-2.0.2-py3.8.egg
Algorithm Hash digest
SHA256 d1ddf8ca578ca7ad224680ed30af4241143e8c4c931ec15b8c68a781db00269a
MD5 19cd3f20d869b30d9898296f0a26596f
BLAKE2b-256 ba302a68eaa55e7a3569c5dcae38ea615ba6ee23273b81b5967b6882d5c22938

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page