Harika22 commited on
Commit
54a7467
Β·
verified Β·
1 Parent(s): f520c52

Update pages/6_Semi_structured_data.py

Browse files
Files changed (1) hide show
  1. pages/6_Semi_structured_data.py +21 -1
pages/6_Semi_structured_data.py CHANGED
@@ -282,8 +282,28 @@ elif file_type == "JSON":
282
  - JSON **(Javascript Orient Notation)**
283
  - It is text-based data format used to store and exchange data, structured as key-value pairs and arrays
284
  - JSON can be both
285
- - **Structured** and **Unstructured**
286
  - Default json format is dictionary format
287
  - Key should always be in string
 
288
  ''')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
289
 
 
282
  - JSON **(Javascript Orient Notation)**
283
  - It is text-based data format used to store and exchange data, structured as key-value pairs and arrays
284
  - JSON can be both
285
+ - **Structured** and **Semi-structured**
286
  - Default json format is dictionary format
287
  - Key should always be in string
288
+ - Reading json files is ** pd.read_json() ** it takes only string
289
  ''')
290
+ st.header("Structred JSON Format")
291
+ st.markdown('''
292
+ - A structured JSON format organizes data hierarchically using key-value pairs, arrays, and nested objects, ensuring readability
293
+ - In structured JSON format, orient refers to the way data is organized or structured, particularly when converting between tabular data like DataFrames and JSON.
294
+ - It determines the layout of the JSON representation.
295
+ - Common orient types are
296
+ β—† Index
297
+ β—† Columns
298
+ β—† Values
299
+ β—† Split
300
+ ''')
301
+ st.subheader("How to read Structured JSON Format?...")
302
+ st.code('''import pandas as pd
303
+ a = '{"name":["harii","sree"],"age":[12,13]}'
304
+ pd.read_json(a)
305
+ ''')
306
+
307
+
308
+
309