Populating a timetable with subjects

DL Neil PythonList at DancesWithMice.info
Fri May 3 20:42:00 EDT 2019


On 4/05/19 11:51 AM, Cameron Simpson wrote:
> On 01May2019 19:22, brittocj at gmail.com <brittocj at gmail.com> wrote:
>> We have to populate a timetable with subjects. What would be the best 
>> approach?
> 
> That's a pretty open ended question. Often a constraint on generating 
> timetables involves ensuring that no 2 subjects use the same timeslot if 
> a student might need to take both those subjects. Unless that student is 
> Hermoine Grainger.
> 
> Also, this looks like homework: we're happy to help, but we tend not to 
> write code for you. We'll suggest approaches and answer specific questions.


Create Dummy Data in Python
Deepanshu Bhalla

This article explains various ways to create dummy or random data in 
Python for practice. Like R, we can create dummy data frames using 
pandas and numpy packages. Most of the analysts prepare data in MS 
Excel. Later they import it into Python to hone their data wrangling 
skills in Python. This is not an efficient approach. The efficient 
approach is to prepare random data in Python and use it later for data 
manipulation.

Table of Contents

     Enter Data Manually in Editor Window
     Read Data from Clipboard
     Entering Data into Python like SAS
     Prepare Data using sequence of numeric and character values
     Generate Random Data
     Create Categorical Variables
     Import CSV or Excel File
...

https://www.listendata.com/2019/04/create-dummy-data-in-python.html

-- 
Regards =dn



More information about the Python-list mailing list