teaevo commited on
Commit
b84957a
1 Parent(s): e38f7f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -48,10 +48,10 @@ conn.close()
48
  '''
49
 
50
  # Create a sample DataFrame with 3,000 records and 20 columns
51
- num_records = 30
52
  num_columns = 20
53
 
54
- '''
55
  data = {
56
  f"column_{i}": np.random.randint(0, 100, num_records) for i in range(num_columns)
57
  }
@@ -59,17 +59,17 @@ data = {
59
  # Randomize the year and city columns
60
  years = list(range(2000, 2023)) # Range of years
61
  cities = ["New York", "Los Angeles", "Chicago", "Houston", "Miami"] # List of cities
62
- '''
63
  #data["year"] = [random.choice(years) for _ in range(num_records)]
64
  #data["city"] = [random.choice(cities) for _ in range(num_records)]
65
 
66
- #table = pd.DataFrame(data)
67
 
68
  data = {
69
  "year": [1896, 1900, 1904, 2004, 2008, 2012],
70
  "city": ["athens", "paris", "st. louis", "athens", "beijing", "london"]
71
  }
72
- table = pd.DataFrame.from_dict(data)
73
 
74
 
75
  # Load the chatbot model
 
48
  '''
49
 
50
  # Create a sample DataFrame with 3,000 records and 20 columns
51
+ num_records = 20
52
  num_columns = 20
53
 
54
+
55
  data = {
56
  f"column_{i}": np.random.randint(0, 100, num_records) for i in range(num_columns)
57
  }
 
59
  # Randomize the year and city columns
60
  years = list(range(2000, 2023)) # Range of years
61
  cities = ["New York", "Los Angeles", "Chicago", "Houston", "Miami"] # List of cities
62
+
63
  #data["year"] = [random.choice(years) for _ in range(num_records)]
64
  #data["city"] = [random.choice(cities) for _ in range(num_records)]
65
 
66
+ table = pd.DataFrame(data)
67
 
68
  data = {
69
  "year": [1896, 1900, 1904, 2004, 2008, 2012],
70
  "city": ["athens", "paris", "st. louis", "athens", "beijing", "london"]
71
  }
72
+ #table = pd.DataFrame.from_dict(data)
73
 
74
 
75
  # Load the chatbot model