ssb-konjunk 0.1.19__py3-none-any.whl → 0.1.21__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ssb_konjunk/saving.py CHANGED
@@ -221,9 +221,11 @@ def _verify_datatilstand(datatilstand: str) -> str:
221
221
  "klargjorte-data",
222
222
  "statistikk",
223
223
  "utdata",
224
+ "logg",
225
+ "konfigurasjon",
224
226
  ]:
225
227
  datatilstand = input(
226
- "Datatilstanden må være enten inndata, klargjorte-data, statistikk eller utdata."
228
+ "Datatilstanden må være enten inndata, klargjorte-data, statistikk eller utdata (eller logg, konfigurasjon)."
227
229
  )
228
230
  datatilstand = _verify_datatilstand(datatilstand)
229
231
  return datatilstand
@@ -259,11 +261,11 @@ def _save_df(
259
261
  df.to_csv(file_path, sep=seperator, index=False, encoding=encoding)
260
262
  # Save as jsonl
261
263
  elif filetype == "jsonl":
262
- df.to_json(orient="records", lines=True)
264
+ df.to_json(file_path, orient="records", lines=True)
263
265
 
264
266
  # Save as json
265
267
  elif filetype == "json":
266
- df.to_json(orient="records", lines=False)
268
+ df.to_json(file_path, orient="records", lines=False)
267
269
 
268
270
  # Uknown filetype sent as argument
269
271
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ssb-konjunk
3
- Version: 0.1.19
3
+ Version: 0.1.21
4
4
  Summary: SSB Konjunk
5
5
  License: MIT
6
6
  Author: Edvard Garmannslund
@@ -6,12 +6,12 @@ ssb_konjunk/fame.py,sha256=6Yw0D1kY20yOu49DHgwfSIAmiHVCERuMeIANg1lYu64,1619
6
6
  ssb_konjunk/prompts.py,sha256=tGI2dARh8jIYB_IZ4Iwb5AEbNoDZq9-17Uc9QjhqPcQ,10269
7
7
  ssb_konjunk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  ssb_konjunk/rounding.py,sha256=nbxYMvvFzoJOxwJBCA80OyaZGhhOHCxbndeYB271Uzk,1269
9
- ssb_konjunk/saving.py,sha256=NXqKj1ID-EGH76AOWSJKZIll2QJoOtMWnImKZQ6cNTw,14924
9
+ ssb_konjunk/saving.py,sha256=uPADvQDdSjMoLSAzqJHCSUgENlwPtg3-wboubLMgLmA,15015
10
10
  ssb_konjunk/statbank_format.py,sha256=cVXrq2qSuMk-FAiMdbIS8Cc8YgZUyTCKnsMdknMbfkM,1469
11
11
  ssb_konjunk/timestamp.py,sha256=XPB5JhZQdDgUPYYNVAFiMZGe8dYL8seb_k98G9CNtjY,9960
12
12
  ssb_konjunk/xml_handling.py,sha256=kvAZ699iOSxHCi2ksEGroFk60-ufsRW7b_m3j47A2gY,1726
13
- ssb_konjunk-0.1.19.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
14
- ssb_konjunk-0.1.19.dist-info/METADATA,sha256=thAiVXYtdJYEQPT1bWEYv58_e3AkI5B4e7FzkpjuQaY,3948
15
- ssb_konjunk-0.1.19.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
16
- ssb_konjunk-0.1.19.dist-info/entry_points.txt,sha256=qU7y58sZiFKYonuEJTbV0MhhbAJtposy46crLp4TjAM,57
17
- ssb_konjunk-0.1.19.dist-info/RECORD,,
13
+ ssb_konjunk-0.1.21.dist-info/LICENSE,sha256=np3IfD5m0ZUofn_kVzDZqliozuiO6wrktw3LRPjyEiI,1073
14
+ ssb_konjunk-0.1.21.dist-info/METADATA,sha256=HNTgIVEjYnSXKt-z6eqIiS_tth5gQSbnl3k79vMKSzc,3948
15
+ ssb_konjunk-0.1.21.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
16
+ ssb_konjunk-0.1.21.dist-info/entry_points.txt,sha256=qU7y58sZiFKYonuEJTbV0MhhbAJtposy46crLp4TjAM,57
17
+ ssb_konjunk-0.1.21.dist-info/RECORD,,